Loading modules/cloud_service_providers/k8s/src/Service/K8sClientExtension/K8sClient.php +3 −3 Original line number Diff line number Diff line Loading @@ -32,9 +32,9 @@ class K8sClient extends Client { ) { try { if ($method === 'PUT' || $method === 'POST') { // If the resource type is cluster role, the apiGroups maybe empty, // and it cannot be removed. if ($uri !== '/clusterroles') { // If the resource type is role or cluster role, the apiGroups maybe // empty, and it cannot be removed. if (!in_array($uri, ['/roles', '/clusterroles'], TRUE)) { $array = $this->removeEmptyProperties(json_decode($body, TRUE)); $body = json_encode($array, JSON_PRETTY_PRINT); } Loading Loading
modules/cloud_service_providers/k8s/src/Service/K8sClientExtension/K8sClient.php +3 −3 Original line number Diff line number Diff line Loading @@ -32,9 +32,9 @@ class K8sClient extends Client { ) { try { if ($method === 'PUT' || $method === 'POST') { // If the resource type is cluster role, the apiGroups maybe empty, // and it cannot be removed. if ($uri !== '/clusterroles') { // If the resource type is role or cluster role, the apiGroups maybe // empty, and it cannot be removed. if (!in_array($uri, ['/roles', '/clusterroles'], TRUE)) { $array = $this->removeEmptyProperties(json_decode($body, TRUE)); $body = json_encode($array, JSON_PRETTY_PRINT); } Loading