From 459668eaf6aa99a5eed6c4485d0ac91f35f0b2e0 Mon Sep 17 00:00:00 2001 From: Gabriel Cuba Date: Tue, 5 Jul 2022 15:07:33 -0500 Subject: [PATCH] Fix bug 2099: Modify helm init command so that all parameters are at the end Change-Id: I9152e34461dbe4528b2a01f5492f4efa6a285b2b Signed-off-by: Gabriel Cuba (cherry picked from commit 5749c53dc559869521242e225b83d02d9ec115a8) --- n2vc/k8s_helm_conn.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/n2vc/k8s_helm_conn.py b/n2vc/k8s_helm_conn.py index b1ad379..9124285 100644 --- a/n2vc/k8s_helm_conn.py +++ b/n2vc/k8s_helm_conn.py @@ -301,8 +301,8 @@ class K8sHelmConnector(K8sHelmBaseConnector): ) command = ( - "{} --kubeconfig={} --tiller-namespace={} --home={} --service-account {} " - " {} init" + "{} init --kubeconfig={} --tiller-namespace={} --home={} --service-account {} " + " {}" ).format( self._helm_command, paths["kube_config"], @@ -325,8 +325,8 @@ class K8sHelmConnector(K8sHelmBaseConnector): ): self.log.info("Initializing helm in client: {}".format(cluster_id)) command = ( - "{} --kubeconfig={} --tiller-namespace={} " - "--home={} init --client-only {} " + "{} init --kubeconfig={} --tiller-namespace={} " + "--home={} --client-only {} " ).format( self._helm_command, paths["kube_config"], -- 2.25.1