Code Review
/
ric-plt
/
ric-dep.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
alarmadapter helm renamed to alarmmanager
[ric-plt/ric-dep.git]
/
bin
/
verify-ric-charts
diff --git
a/bin/verify-ric-charts
b/bin/verify-ric-charts
index
7400185
..
696e447
100755
(executable)
--- a/
bin/verify-ric-charts
+++ b/
bin/verify-ric-charts
@@
-28,7
+28,7
@@
echo "--> verify-ric-charts"
if [[ "${1:-nope}" != "nope" ]]; then
HELMVERSION=$1
else
if [[ "${1:-nope}" != "nope" ]]; then
HELMVERSION=$1
else
- HELMVERSION=2.1
2.3
+ HELMVERSION=2.1
7.0
fi
if [[ "${2:-nope}" != "nope" ]]; then
OVERRIDEYAML=$2
fi
if [[ "${2:-nope}" != "nope" ]]; then
OVERRIDEYAML=$2
@@
-67,6
+67,7
@@
$HELM_COMMAND package --save=false -d ./charts "$ROOT_DIR/dep/ric-common/Common-
$HELM_COMMAND repo index ./charts
# Make sure that helm local repo is added
$HELM_COMMAND repo remove local
$HELM_COMMAND repo index ./charts
# Make sure that helm local repo is added
$HELM_COMMAND repo remove local
+$HELM_COMMAND repo remove stable
$HELM_COMMAND repo add local http://127.0.0.1:8879/charts
# Remove it/dep charts
rm -rf ./dep
$HELM_COMMAND repo add local http://127.0.0.1:8879/charts
# Remove it/dep charts
rm -rf ./dep
@@
-87,24
+88,18
@@
do
# Lint clearly marks errors; e.g., [ERROR]
echo "Performing Helm lint"
if [[ "${OVERRIDEYAML:-nope}" != "nope" ]]; then
# Lint clearly marks errors; e.g., [ERROR]
echo "Performing Helm lint"
if [[ "${OVERRIDEYAML:-nope}" != "nope" ]]; then
- $HELM_COMMAND lint -f "$OVERRIDEYAML" "$dir"
> /tmp/output 2>&1
+ $HELM_COMMAND lint -f "$OVERRIDEYAML" "$dir"
else
else
- $HELM_COMMAND lint "$dir"
> /tmp/output 2>&1
+ $HELM_COMMAND lint "$dir"
fi
echo "***************************************************************************************************************"
fi
echo "***************************************************************************************************************"
- cat /tmp/output
- egrep -q '^Error: [0-9]* chart\(s\) linted, [0-9]* chart\(s\) failed' /tmp/output && exit 1
- echo "***************************************************************************************************************"
echo "Rendering Helm charts locally"
if [[ "${OVERRIDEYAML:-nope}" != "nope" ]]; then
echo "Rendering Helm charts locally"
if [[ "${OVERRIDEYAML:-nope}" != "nope" ]]; then
- $HELM_COMMAND template -f "$OVERRIDEYAML" "$dir"
> /tmp/output 2>&1
+ $HELM_COMMAND template -f "$OVERRIDEYAML" "$dir"
else
else
- $HELM_COMMAND template "$dir"
> /tmp/output 2>&1
+ $HELM_COMMAND template "$dir"
fi
echo "***************************************************************************************************************"
fi
echo "***************************************************************************************************************"
- cat /tmp/output
- grep -E -n '%!.\(.*=.*\)' /tmp/output && echo "Error: Type mismatch." && exit 1
- echo "***************************************************************************************************************"
done
echo "--> verify-ric-charts ends"
exit 0
done
echo "--> verify-ric-charts ends"
exit 0