From fb1543832ff18266b3136dee4e8b89c31f78c2ce Mon Sep 17 00:00:00 2001 From: ktimoney Date: Wed, 28 Sep 2022 09:28:04 +0100 Subject: [PATCH] Update helm-push install Issue-ID: NONRTRIC-804 Change-Id: I563dc711a67a6ca01c58531cfd8fb315c329dba1 Signed-off-by: ktimoney --- smo-install/scripts/layer-0/0-setup-helm3.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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 -- 2.16.6