From: Taewan Kim Date: Mon, 10 Apr 2023 10:03:08 +0000 (+0900) Subject: Fix the error that HELM_REPOSITORY_CACHE is not set if servecm is in the helm list. X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=80647ec6ea4a0f3317c0be8cb44a4a958307fad1;p=aiml-fw%2Faimlfw-dep.git 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 --- 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/ <