Correct the command format for helm3 in install script of nonrtric 84/5384/2
authorRehanRaza <muhammad.rehan.raza@est.tech>
Wed, 30 Dec 2020 14:01:59 +0000 (15:01 +0100)
committerRehanRaza <muhammad.rehan.raza@est.tech>
Mon, 4 Jan 2021 14:30:39 +0000 (15:30 +0100)
The 'helm install' command does not work for helm3, the release name must come before the chart name.

Change-Id: Iebef8df2d1a20f2af34d89516f7b118228b0b979
Issue-ID: NONRTRIC-371
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
nonrtric/bin/install

index dbaff47..8008833 100755 (executable)
@@ -72,7 +72,7 @@ helm dep up $DIR/../helm/$PARENT_CHART
 HELM_NAME_OPT=""
 if [ -z $IS_HELM3 ];then
    HELM_NAME_OPT="--name"
-fi     
+fi
 
-helm install $DIR/../helm/"${PARENT_CHART}" -f $OVERRIDEYAML --namespace "${NONRTRIC_NAMESPACE:-nonrtric}" ${HELM_NAME_OPT} "${RELEASE_PREFIX}"
+helm install -f $OVERRIDEYAML --namespace "${NONRTRIC_NAMESPACE:-nonrtric}" ${HELM_NAME_OPT} "${RELEASE_PREFIX}" $DIR/../helm/"${PARENT_CHART}"