Browse Source

Use new method for setting num of replicas

Use the new _num_replicas_for_platform_app method from the
helm base class to set the number of replicas in the chart.
The new method will return the number of provisioned
controllers with a minimum of 1.

Tested by building an ISO and installing the armada apps.

Partial-Bug: 1922278
Signed-off-by: Isac Souza <IsacSacchi.Souza@windriver.com>
Change-Id: Idb3c93274a1cb5c410d885d459784382525427a0
changes/98/784798/1
Isac Souza 2 months ago
parent
commit
9d45149d29
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      python-k8sapp-platform/k8sapp_platform/k8sapp_platform/helm/ceph_fs_provisioner.py
  2. +1
    -1
      python-k8sapp-platform/k8sapp_platform/k8sapp_platform/helm/rbd_provisioner.py

+ 1
- 1
python-k8sapp-platform/k8sapp_platform/k8sapp_platform/helm/ceph_fs_provisioner.py View File

@ -170,7 +170,7 @@ class CephFSProvisionerHelm(base.BaseHelm):
classes.append(cls)
global_settings = {
"replicas": self._num_provisioned_controllers(),
"replicas": self._num_replicas_for_platform_app(),
}
overrides = {


+ 1
- 1
python-k8sapp-platform/k8sapp_platform/k8sapp_platform/helm/rbd_provisioner.py View File

@ -83,7 +83,7 @@ class RbdProvisionerHelm(base.BaseHelm):
classes.append(cls)
global_settings = {
"replicas": self._num_provisioned_controllers(),
"replicas": self._num_replicas_for_platform_app(),
"defaultStorageClass": constants.K8S_RBD_PROV_STOR_CLASS_NAME
}


Loading…
Cancel
Save