Skip to content
Snippets Groups Projects
Commit 0b9c32f4 authored by Yas Naoi's avatar Yas Naoi
Browse files

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

parent 7770a5d9
Branches
Tags
3 merge requests!1316Issue #3310263: Release 4.5.0,!1260Issue #3307397: Release 4.4.0,!1048Issue #3284108: Refactor to update K8s resources
...@@ -4124,6 +4124,11 @@ class K8sService extends CloudServiceBase implements K8sServiceInterface { ...@@ -4124,6 +4124,11 @@ class K8sService extends CloudServiceBase implements K8sServiceInterface {
$method = 'quotas'; $method = 'quotas';
} }
// NOTE: PersistentVolume is not plural.
if (str_ends_with($resource, 'persistentVolume')) {
$method = 'persistentVolume';
}
return $this->getClient($namespace) return $this->getClient($namespace)
->$method() ->$method()
->update(new $class($params)); ->update(new $class($params));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment