Bug 1400: Updated url for client-only helm init
Change-Id: Id80f1d175c0943527437851cc8c430da2f4af4c4
Signed-off-by: lloretgalleg <illoret@indra.es>
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 @@
# 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 @@
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