X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=it%2Fdep.git;a=blobdiff_plain;f=smo-install%2Fscripts%2Flayer-0%2F0-setup-helm3.sh;fp=smo-install%2Fscripts%2Flayer-0%2F0-setup-helm3.sh;h=c9d03b637421d330bd839bda5b08c1e70ca48788;hp=09eafe2f2d1b09aa74071cb0aa80338eb0ef7869;hb=fb1543832ff18266b3136dee4e8b89c31f78c2ce;hpb=5199ff5ad991b7d7df2314cd271be2b13d78841b diff --git a/smo-install/scripts/layer-0/0-setup-helm3.sh b/smo-install/scripts/layer-0/0-setup-helm3.sh index 09eafe2f..c9d03b63 100755 --- a/smo-install/scripts/layer-0/0-setup-helm3.sh +++ b/smo-install/scripts/layer-0/0-setup-helm3.sh @@ -20,7 +20,7 @@ # limitations under the License. # ============LICENSE_END============================================ # =================================================================== -# +# ### #Helm package @@ -33,8 +33,17 @@ apt-get install git -y echo "Checking HELM ..." -helm version +helm version -helm plugin install --version v0.9.0 https://github.com/chartmuseum/helm-push.git +TAR_VERSION=0.9.0 +echo "Downloading and installing helm-push v${TAR_VERSION} ..." +TAR_FILE=helm-push_${TAR_VERSION}_linux_amd64.tar.gz +HELM_PLUGINS=$(helm env HELM_PLUGINS) +mkdir -p $HELM_PLUGINS/helm-push +cd $HELM_PLUGINS/helm-push +wget https://nexus.o-ran-sc.org/service/local/repositories/images/content/$TAR_FILE +tar zxvf $TAR_FILE >/dev/null +rm $TAR_FILE +cd /tmp/ helm repo remove local helm repo add local http://localhost:18080