From: lloretgalleg Date: Fri, 15 Jan 2021 11:33:00 +0000 (+0000) Subject: Bug 1400: Updated url for client-only helm init X-Git-Tag: v9.1.0~6 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=commitdiff_plain;h=ee5c9a14946e8746a436e4c5e647d5147ab0855b Bug 1400: Updated url for client-only helm init Change-Id: Id80f1d175c0943527437851cc8c430da2f4af4c4 Signed-off-by: lloretgalleg --- 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