X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=inline;f=nonrtric%2Fbin%2Finstall;h=800883360e9feea534ff6ee613ca2d33acd99a8e;hb=81dc65cca59e635d527c1a4aae8be7e16c80b544;hp=cec12dab969b0577a0d6a95ba9e161e3b9b5d56e;hpb=f38d71d35163d6b9c36f5b028324d152ccce5eb7;p=it%2Fdep.git diff --git a/nonrtric/bin/install b/nonrtric/bin/install index cec12dab..80088336 100755 --- a/nonrtric/bin/install +++ b/nonrtric/bin/install @@ -15,7 +15,7 @@ # limitations under the License. # ################################################################################ - +IS_HELM3=$(helm version -c --short|grep -e "^v3") while [ -n "$1" ]; do # while loop starts case "$1" in @@ -69,5 +69,10 @@ echo "Deploying NONRTRIC components [$COMPONENTS]" echo "Updating the Parent Chart [$PARENT_CHART]" helm dep up $DIR/../helm/$PARENT_CHART -helm install $DIR/../helm/"${PARENT_CHART}" -f $OVERRIDEYAML --namespace "${NONRTRIC_NAMESPACE:-nonrtric}" --name "${RELEASE_PREFIX}" +HELM_NAME_OPT="" +if [ -z $IS_HELM3 ];then + HELM_NAME_OPT="--name" +fi + +helm install -f $OVERRIDEYAML --namespace "${NONRTRIC_NAMESPACE:-nonrtric}" ${HELM_NAME_OPT} "${RELEASE_PREFIX}" $DIR/../helm/"${PARENT_CHART}"