fix(kubernetes): namespace yaml [EE-6701] (#11747)

pull/11764/head
Prabhat Khera 2024-05-03 09:12:37 +12:00 committed by GitHub
parent 88ee1b5d19
commit 9b6779515e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -345,7 +345,7 @@ class KubernetesResourcePoolController {
const name = this.$state.params.id; const name = this.$state.params.id;
const [nodes, pools] = await Promise.all([this.KubernetesNodeService.get(), this.KubernetesResourcePoolService.get('', { getQuota: true })]); const [nodes, pool] = await Promise.all([this.KubernetesNodeService.get(), this.KubernetesResourcePoolService.get(name)]);
this.ingressControllers = []; this.ingressControllers = [];
if (this.state.ingressAvailabilityPerNamespace) { if (this.state.ingressAvailabilityPerNamespace) {
@ -353,7 +353,7 @@ class KubernetesResourcePoolController {
this.initialIngressControllers = structuredClone(this.ingressControllers); this.initialIngressControllers = structuredClone(this.ingressControllers);
} }
this.pool = _.find(pools, { Namespace: { Name: name } }); this.pool = pool;
this.formValues = new KubernetesResourcePoolFormValues(KubernetesResourceQuotaDefaults); this.formValues = new KubernetesResourcePoolFormValues(KubernetesResourceQuotaDefaults);
this.formValues.Name = this.pool.Namespace.Name; this.formValues.Name = this.pool.Namespace.Name;
this.formValues.EndpointId = this.endpoint.Id; this.formValues.EndpointId = this.endpoint.Id;