Commit 954842bf authored by Yas Naoi's avatar Yas Naoi
Browse files

Issue #3284108 by yas: Hotfix - Refactor to update K8s resources

parent 3374f9f4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4124,6 +4124,11 @@ class K8sService extends CloudServiceBase implements K8sServiceInterface {
        $method = 'quotas';
      }

      // NOTE: PersistentVolume is not plural.
      if (str_ends_with($resource, 'persistentVolume')) {
        $method = 'persistentVolume';
      }

      return $this->getClient($namespace)
        ->$method()
        ->update(new $class($params));