Update helm-push install 35/9135/4
authorktimoney <kevin.timoney@est.tech>
Wed, 28 Sep 2022 08:28:04 +0000 (09:28 +0100)
committerktimoney <kevin.timoney@est.tech>
Thu, 29 Sep 2022 16:58:42 +0000 (17:58 +0100)
Issue-ID: NONRTRIC-804
Change-Id: I563dc711a67a6ca01c58531cfd8fb315c329dba1
Signed-off-by: ktimoney <kevin.timoney@est.tech>
smo-install/scripts/layer-0/0-setup-helm3.sh

index 09eafe2..c9d03b6 100755 (executable)
@@ -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