From ee6c3f958f1a304bbd73e021fe272f78f84cb1cc Mon Sep 17 00:00:00 2001 From: Ali <83188384+testA113@users.noreply.github.com> Date: Thu, 7 Dec 2023 16:32:46 +1300 Subject: [PATCH] Revert "fix(app): update sliders when limits are known [EE-5933] (#10769)" (#10782) This reverts commit f80501b5054fb6595eba369cff4980c655b9624e. --- .../applications/create/createApplicationController.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/kubernetes/views/applications/create/createApplicationController.js b/app/kubernetes/views/applications/create/createApplicationController.js index dfe9c6c54..044d55610 100644 --- a/app/kubernetes/views/applications/create/createApplicationController.js +++ b/app/kubernetes/views/applications/create/createApplicationController.js @@ -1114,10 +1114,10 @@ class KubernetesCreateApplicationController { }); if (this.resourcePools.length) { - this.namespaceWithQuota = await this.KubernetesResourcePoolService.get(this.resourcePools[0].Namespace.Name); - this.formValues.ResourcePool.Quota = this.namespaceWithQuota.Quota; - this.updateNamespaceLimits(this.namespaceWithQuota); - this.updateSliders(this.namespaceWithQuota); + const namespaceWithQuota = await this.KubernetesResourcePoolService.get(this.resourcePools[0].Namespace.Name); + this.formValues.ResourcePool.Quota = namespaceWithQuota.Quota; + this.updateNamespaceLimits(namespaceWithQuota); + this.updateSliders(namespaceWithQuota); } this.formValues.ResourcePool = this.resourcePools[0]; if (!this.formValues.ResourcePool) { @@ -1162,8 +1162,6 @@ class KubernetesCreateApplicationController { this.formValues.OriginalIngresses = this.ingresses; this.formValues.ImageModel = await this.parseImageConfiguration(this.formValues.ImageModel); this.savedFormValues = angular.copy(this.formValues); - this.updateNamespaceLimits(this.namespaceWithQuota); - this.updateSliders(this.namespaceWithQuota); delete this.formValues.ApplicationType; if (this.application.ApplicationType !== KubernetesApplicationTypes.STATEFULSET) {