1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-20 05:49:40 +02:00

refactor(app): migrate replicas form section [EE-6238] (#10705)

Co-authored-by: testa113 <testa113>
This commit is contained in:
Ali 2024-01-03 10:27:38 +13:00 committed by GitHub
parent 58da51f767
commit 6da71661d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 142 additions and 66 deletions

View file

@ -155,6 +155,7 @@ class KubernetesCreateApplicationController {
this.onSecretsChange = this.onSecretsChange.bind(this);
this.onChangePersistedFolder = this.onChangePersistedFolder.bind(this);
this.onChangeResourceReservation = this.onChangeResourceReservation.bind(this);
this.onChangeReplicaCount = this.onChangeReplicaCount.bind(this);
}
/* #endregion */
@ -517,6 +518,12 @@ class KubernetesCreateApplicationController {
return false;
}
onChangeReplicaCount(values) {
return this.$async(async () => {
this.formValues.ReplicaCount = values.replicaCount;
});
}
// For each persisted folders, returns the non scalable deployments options (storage class that only supports RWO)
getNonScalableStorage() {
let storageOptions = [];