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

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

parent 3374f9f4
Branches
Tags
3 merge requests!1759Issue #3356778: Release 5.1.1,!1679Issue #3349074: Fix the OpenStack Project create and edit form in SPA that "Member" cannot be saved due to a validation error,!1607Issue #3343582: Add the function to preview OpenStack stack in the SPA
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment