From ee5c9a14946e8746a436e4c5e647d5147ab0855b Mon Sep 17 00:00:00 2001 From: lloretgalleg Date: Fri, 15 Jan 2021 11:33:00 +0000 Subject: [PATCH] Bug 1400: Updated url for client-only helm init Change-Id: Id80f1d175c0943527437851cc8c430da2f4af4c4 Signed-off-by: lloretgalleg --- n2vc/k8s_helm_conn.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/n2vc/k8s_helm_conn.py b/n2vc/k8s_helm_conn.py index 442ed06..fdae32f 100644 --- a/n2vc/k8s_helm_conn.py +++ b/n2vc/k8s_helm_conn.py @@ -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 -- 2.25.1