|
|
|
@ -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) {
|
|
|
|
|