mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 05:49:40 +02:00
feat(k8s/application): add default values for auto scaler (#4190)
This commit is contained in:
parent
baaa96f34f
commit
a1e3ed7f78
3 changed files with 5 additions and 5 deletions
|
@ -733,9 +733,7 @@ class KubernetesCreateApplicationController {
|
|||
});
|
||||
}
|
||||
} else {
|
||||
this.formValues.AutoScaler = KubernetesApplicationHelper.generateAutoScalerFormValueFromHorizontalPodAutoScaler();
|
||||
this.formValues.AutoScaler.MinReplicas = this.formValues.ReplicaCount;
|
||||
this.formValues.AutoScaler.MaxReplicas = this.formValues.ReplicaCount;
|
||||
this.formValues.AutoScaler = KubernetesApplicationHelper.generateAutoScalerFormValueFromHorizontalPodAutoScaler(null, this.formValues.ReplicaCount);
|
||||
}
|
||||
|
||||
await this.updateSliders();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue