X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=bin%2Fverify-ric-charts;h=53cc831227cfcb2a8798b62fb784c6253f85c973;hb=07123460d813193fb0fdcc6d69230397b4467f56;hp=e9feb06c8ee24c4a7e74fcb246d965754e2caae0;hpb=a72e0f1c2ae78ab9eadacf5e7b3df53998584a72;p=it%2Fdep.git diff --git a/bin/verify-ric-charts b/bin/verify-ric-charts index e9feb06c..53cc8312 100755 --- a/bin/verify-ric-charts +++ b/bin/verify-ric-charts @@ -23,7 +23,7 @@ OVERRIDEYAML=$1 ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" #Check for helm3 -IS_HELM3=$(helm version --short|grep -e "^v3") +IS_HELM3=$(helm version -c --short|grep -e "^v3") # Start Helm local repo if there isn't one HELM_REPO_PID=$(ps -x | grep "helm serve" | grep -v "grep" | awk '{print $1}') @@ -78,10 +78,14 @@ while IFS= read -r -d $'\0'; do done < <(find $ROOT_DIR/../ -maxdepth 5 -name Chart.yaml -printf '%h\0') echo "***************************************" - +echo "Remove nonrtric parent chart from linting as its a conceptual visualization of Nonrtric components. This chart doesn't contain any templates & it's primarily +used for grouping of all Nonrtric components in deployment" for dir in "${CHART_ARRAY[@]}" do + if [[ $dir == *"/helm/nonrtric"* ]]; then + echo "Skip Nonrtric Parent chart" + else echo "Update chart dependency for directory $dir" helm dep up $dir # Lint clearly marks errors; e.g., [ERROR] @@ -106,4 +110,5 @@ do sleep 1 egrep -n '%!.\(.*=.*\)' /tmp/output && echo "Error: Type mismatch." && exit 1 echo "***************************************************************************************************************" + fi done