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
This commit is contained in:
Isac Souza 2021-04-05 11:07:21 -03:00
parent 45fd0a6b2c
commit 9d45149d29
2 changed files with 2 additions and 2 deletions

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 = {

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
}