Loading modules/cloud_service_providers/k8s/src/Service/K8sService.php +6 −1 Original line number Diff line number Diff line Loading @@ -1113,7 +1113,7 @@ class K8sService extends CloudServiceBase implements K8sServiceInterface { * {@inheritdoc} */ public function updateResourceQuota($namespace, array $params = []): ?array { return $this->updateResource(ResourceQuota::class, $params, $namespace); return $this->updateResource(QuotaModel::class, $params, $namespace); } /** Loading Loading @@ -4119,6 +4119,11 @@ class K8sService extends CloudServiceBase implements K8sServiceInterface { $method = substr($resource, 0, -1) . 'ies'; } // NOTE: Resource Quota is defined as Maclof\Kubernetes\Models\QuotaModel. if (str_ends_with($resource, 'quotaModel')) { $method = 'quotas'; } return $this->getClient($namespace) ->$method() ->update(new $class($params)); Loading Loading
modules/cloud_service_providers/k8s/src/Service/K8sService.php +6 −1 Original line number Diff line number Diff line Loading @@ -1113,7 +1113,7 @@ class K8sService extends CloudServiceBase implements K8sServiceInterface { * {@inheritdoc} */ public function updateResourceQuota($namespace, array $params = []): ?array { return $this->updateResource(ResourceQuota::class, $params, $namespace); return $this->updateResource(QuotaModel::class, $params, $namespace); } /** Loading Loading @@ -4119,6 +4119,11 @@ class K8sService extends CloudServiceBase implements K8sServiceInterface { $method = substr($resource, 0, -1) . 'ies'; } // NOTE: Resource Quota is defined as Maclof\Kubernetes\Models\QuotaModel. if (str_ends_with($resource, 'quotaModel')) { $method = 'quotas'; } return $this->getClient($namespace) ->$method() ->update(new $class($params)); Loading