From 80647ec6ea4a0f3317c0be8cb44a4a958307fad1 Mon Sep 17 00:00:00 2001 From: Taewan Kim Date: Mon, 10 Apr 2023 19:03:08 +0900 Subject: [PATCH] Fix the error that HELM_REPOSITORY_CACHE is not set if servecm is in the helm list. Signed-off-by: Taewan Kim Change-Id: I7fc23109fc68796888eb0a6cbe1813083e811c39 --- bin/install_common_templates_to_helm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/install_common_templates_to_helm.sh b/bin/install_common_templates_to_helm.sh index bc6768d..ac7d4d3 100755 --- a/bin/install_common_templates_to_helm.sh +++ b/bin/install_common_templates_to_helm.sh @@ -24,8 +24,6 @@ then echo "Installing servecm (Chart Manager) and common templates to helm3" helm plugin install https://github.com/jdolitsky/helm-servecm - eval $(helm env | grep HELM_REPOSITORY_CACHE) - echo ${HELM_REPOSITORY_CACHE} else echo "Found servecm in the helm plugin list. Skip servecm installation." fi @@ -36,6 +34,8 @@ tar xzvf chartmuseum-v0.15.0-linux-386.tar.gz chmod +x ./linux-386/chartmuseum sudo cp ./linux-386/chartmuseum /usr/local/bin +eval $(helm env | grep HELM_REPOSITORY_CACHE) +echo ${HELM_REPOSITORY_CACHE} helm servecm --port=8879 --context-path=/charts --storage local --storage-local-rootdir $HELM_REPOSITORY_CACHE/local/ <