X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=nonrtric%2Fbin%2Finstall;h=a68429d23426b5436afd2ffd8f200aa04b8f1da5;hb=c96a76b9867c4650c5f0dce302909235a4389a05;hp=af4b0662932cc4705de34bdf780fb3c110bde7d0;hpb=16d1788c8835feb3bf819711704cb63a2116c829;p=it%2Fdep.git diff --git a/nonrtric/bin/install b/nonrtric/bin/install index af4b0662..a68429d2 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 $DIR/../helm/"${PARENT_CHART}" -f $OVERRIDEYAML --namespace "${NONRTRIC_NAMESPACE:-nonrtric}" ${HELM_NAME_OPT} "${RELEASE_PREFIX}"