Bug 1400: Updated url for client-only helm init 77/10177/1
authorlloretgalleg <illoret@indra.es>
Fri, 15 Jan 2021 11:33:00 +0000 (11:33 +0000)
committerlloretgalleg <illoret@indra.es>
Fri, 15 Jan 2021 11:33:00 +0000 (11:33 +0000)
Change-Id: Id80f1d175c0943527437851cc8c430da2f4af4c4
Signed-off-by: lloretgalleg <illoret@indra.es>
n2vc/k8s_helm_conn.py

index 442ed06..fdae32f 100644 (file)
@@ -72,7 +72,8 @@ class K8sHelmConnector(K8sHelmBaseConnector):
 
         # initialize helm client-only
         self.log.debug("Initializing helm client-only...")
-        command = "{} init --client-only".format(self._helm_command)
+        command = "{} init --client-only --stable-repo-url {} ".format(
+            self._helm_command, self._stable_repo_url)
         try:
             asyncio.ensure_future(
                 self._local_async_exec(command=command, raise_exception_on_error=False)
@@ -285,12 +286,13 @@ class K8sHelmConnector(K8sHelmBaseConnector):
                 self.log.info("Initializing helm in client: {}".format(cluster_id))
                 command = (
                     "{} --kubeconfig={} --tiller-namespace={} "
-                    "--home={} init --client-only"
+                    "--home={} init --client-only --stable-repo-url {} "
                 ).format(
                     self._helm_command,
                     paths["kube_config"],
                     namespace,
                     paths["helm_dir"],
+                    self._stable_repo_url,
                 )
                 output, _rc = await self._local_async_exec(
                     command=command, raise_exception_on_error=True, env=env