Revert "fix(app): update sliders when limits are known [EE-5933] (#10769)" (#10782)

This reverts commit f80501b505.
pull/10788/head
Ali 12 months ago committed by GitHub
parent e78519f492
commit ee6c3f958f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1114,10 +1114,10 @@ class KubernetesCreateApplicationController {
}); });
if (this.resourcePools.length) { if (this.resourcePools.length) {
this.namespaceWithQuota = await this.KubernetesResourcePoolService.get(this.resourcePools[0].Namespace.Name); const namespaceWithQuota = await this.KubernetesResourcePoolService.get(this.resourcePools[0].Namespace.Name);
this.formValues.ResourcePool.Quota = this.namespaceWithQuota.Quota; this.formValues.ResourcePool.Quota = namespaceWithQuota.Quota;
this.updateNamespaceLimits(this.namespaceWithQuota); this.updateNamespaceLimits(namespaceWithQuota);
this.updateSliders(this.namespaceWithQuota); this.updateSliders(namespaceWithQuota);
} }
this.formValues.ResourcePool = this.resourcePools[0]; this.formValues.ResourcePool = this.resourcePools[0];
if (!this.formValues.ResourcePool) { if (!this.formValues.ResourcePool) {
@ -1162,8 +1162,6 @@ class KubernetesCreateApplicationController {
this.formValues.OriginalIngresses = this.ingresses; this.formValues.OriginalIngresses = this.ingresses;
this.formValues.ImageModel = await this.parseImageConfiguration(this.formValues.ImageModel); this.formValues.ImageModel = await this.parseImageConfiguration(this.formValues.ImageModel);
this.savedFormValues = angular.copy(this.formValues); this.savedFormValues = angular.copy(this.formValues);
this.updateNamespaceLimits(this.namespaceWithQuota);
this.updateSliders(this.namespaceWithQuota);
delete this.formValues.ApplicationType; delete this.formValues.ApplicationType;
if (this.application.ApplicationType !== KubernetesApplicationTypes.STATEFULSET) { if (this.application.ApplicationType !== KubernetesApplicationTypes.STATEFULSET) {

Loading…
Cancel
Save