@@ -75,7 +75,7 @@ public static function getResourceByNamespaceName($resources, $namespace, $name)
75
75
*/
76
76
public static function getResourceApiVersion ($ resource )
77
77
{
78
- return isset ( $ resource ['apiVersion ' ]) ?? $ resource [ ' apiVersion ' ] ;
78
+ return $ resource ['apiVersion ' ] ?? "" ;
79
79
}
80
80
81
81
/**
@@ -86,7 +86,7 @@ public static function getResourceApiVersion($resource)
86
86
*/
87
87
public static function getResourceKind ($ resource )
88
88
{
89
- return isset ( $ resource ['kind ' ]) ?? $ resource [ ' kind ' ] ;
89
+ return $ resource ['kind ' ] ?? "" ;
90
90
}
91
91
92
92
/**
@@ -97,7 +97,7 @@ public static function getResourceKind($resource)
97
97
*/
98
98
public static function getResourceNamespace ($ resource )
99
99
{
100
- return (isset ($ resource ['metadata ' ]) && isset ($ resource ['metadata ' ]['namespace ' ])) ?? $ resource ['metadata ' ]['namespace ' ];
100
+ return (isset ($ resource ['metadata ' ]) && isset ($ resource ['metadata ' ]['namespace ' ])) ? $ resource ['metadata ' ]['namespace ' ] : "" ;
101
101
}
102
102
103
103
/**
@@ -108,7 +108,7 @@ public static function getResourceNamespace($resource)
108
108
*/
109
109
public static function getResourceName ($ resource )
110
110
{
111
- return (isset ($ resource ['metadata ' ]) && isset ($ resource ['metadata ' ]['name ' ])) ?? $ resource ['metadata ' ]['name ' ];
111
+ return (isset ($ resource ['metadata ' ]) && isset ($ resource ['metadata ' ]['name ' ])) ? $ resource ['metadata ' ]['name ' ] : "" ;
112
112
}
113
113
114
114
public static function getResourceNamespaceHyphenName ($ resource )
@@ -141,7 +141,7 @@ public static function getNodeIp($node)
141
141
* @param $namespace
142
142
* @return array
143
143
*/
144
- public static function findListItem ($ list , $ name , $ namespace = null )
144
+ public static function findListItem (& $ list , $ name , $ namespace = null )
145
145
{
146
146
$ itemKey = null ;
147
147
$ item = null ;
0 commit comments