From f5ce75b7bc33b0f0439ee7ca35224f50c84a17e0 Mon Sep 17 00:00:00 2001 From: Isac Souza Date: Mon, 5 Apr 2021 11:00:19 -0300 Subject: [PATCH] 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 Change-Id: I69a41efafbdca48a986e1f360925a85983450e88 --- python-k8sapp-oidc/k8sapp_oidc/k8sapp_oidc/helm/dex.py | 2 +- python-k8sapp-oidc/k8sapp_oidc/k8sapp_oidc/helm/oidc_client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python-k8sapp-oidc/k8sapp_oidc/k8sapp_oidc/helm/dex.py b/python-k8sapp-oidc/k8sapp_oidc/k8sapp_oidc/helm/dex.py index 4ebf90a..c2094e2 100644 --- a/python-k8sapp-oidc/k8sapp_oidc/k8sapp_oidc/helm/dex.py +++ b/python-k8sapp-oidc/k8sapp_oidc/k8sapp_oidc/helm/dex.py @@ -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(), } } diff --git a/python-k8sapp-oidc/k8sapp_oidc/k8sapp_oidc/helm/oidc_client.py b/python-k8sapp-oidc/k8sapp_oidc/k8sapp_oidc/helm/oidc_client.py index 4eeac58..ec14333 100644 --- a/python-k8sapp-oidc/k8sapp_oidc/k8sapp_oidc/helm/oidc_client.py +++ b/python-k8sapp-oidc/k8sapp_oidc/k8sapp_oidc/helm/oidc_client.py @@ -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(), } }