Fix bug 2099: Modify helm init command so that all parameters are at the end 03/12303/2 v10.1.2
authorGabriel Cuba <gcuba@whitestack.com>
Tue, 5 Jul 2022 20:07:33 +0000 (15:07 -0500)
committercalvinosanc1 <guillermo.calvino@canonical.com>
Tue, 2 Aug 2022 15:38:58 +0000 (17:38 +0200)
Change-Id: I9152e34461dbe4528b2a01f5492f4efa6a285b2b
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
n2vc/k8s_helm_conn.py

index f0cbb46..b20ee87 100644 (file)
@@ -302,8 +302,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"],
@@ -326,8 +326,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"],