Code Review
/
it
/
dep.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix the yq based validation checks
[it/dep.git]
/
bin
/
verify-ric-charts
diff --git
a/bin/verify-ric-charts
b/bin/verify-ric-charts
index
e9feb06
..
53cc831
100755
(executable)
--- 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
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}')
# 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 "***************************************"
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
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]
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 "***************************************************************************************************************"
sleep 1
egrep -n '%!.\(.*=.*\)' /tmp/output && echo "Error: Type mismatch." && exit 1
echo "***************************************************************************************************************"
+ fi
done
done