X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=nonrtric%2Fbin%2Finstall;h=608556dfb05cc070e7d2e121ef157a6f905bbca6;hb=07123460d813193fb0fdcc6d69230397b4467f56;hp=e49b8e9387d85b379003052febabccf5028a2cfe;hpb=0faae789812e0f84949d26c415e8cb2cce1d94d5;p=it%2Fdep.git diff --git a/nonrtric/bin/install b/nonrtric/bin/install index e49b8e93..608556df 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 @@ -52,7 +52,7 @@ NAMESPACE_BLOCK=$(cat $OVERRIDEYAML | awk '/^ namespace:/{getline; while ($0 ~ NONRTRIC_NAMESPACE=$(echo "$NAMESPACE_BLOCK" | awk '/^ *nonrtric:/{print $2}') RELEASE_PREFIX=$(echo "$COMMON_BLOCK" | awk '/^ *releasePrefix:/{print $2}') PARENT_CHART=$(cat $OVERRIDEYAML | awk '/^ *component:/{print $2}') -COMPONENTS=${LIST_OF_COMPONENTS:-"controlpanel a1controller a1simulator policymanagementservice nonrtric"} +COMPONENTS=${LIST_OF_COMPONENTS:-"controlpanel a1controller a1simulator policymanagementservice enrichmentservice nonrtric rappcatalogueservice nonrtricgateway"} echo "Chart name- $PARENT_CHART" if ! kubectl get ns ${NONRTRIC_NAMESPACE:-nonrtric}> /dev/null 2>&1; then @@ -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}"