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: I69a41efafbdca48a986e1f360925a85983450e88
This commit is contained in:
Isac Souza 2021-04-05 11:00:19 -03:00
parent 7ca34d2a6f
commit f5ce75b7bc
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ class Dex(DexBaseHelm):
'staticClients': self._get_static_clients(),
},
'ports': ports,
'replicas': self._num_provisioned_controllers(),
'replicas': self._num_replicas_for_platform_app(),
}
}

View File

@ -36,7 +36,7 @@ class OidcClientHelm(DexBaseHelm):
'service': {
'nodePort': self.OIDC_CLIENT_NODE_PORT
},
'replicas': self._num_provisioned_controllers(),
'replicas': self._num_replicas_for_platform_app(),
}
}