Skip to content

Commit 64b8cf0

Browse files
authored
Merge pull request #335 from andyzhangx/verify-helm-chart2
test: add chart tgz files verification
2 parents 8586361 + ee86b00 commit 64b8cf0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

hack/verify-helm-chart.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,18 @@ validate_image "${expected_blob_image}" "${blob_image}"
7979

8080
echo "Images in deploy/ matches those in the latest helm chart."
8181

82-
# verify whether latest chart config has changed
82+
# verify whether chart config has changed
83+
diff=`git diff`
84+
if [[ -n "${diff}" ]]; then
85+
echo "${diff}"
86+
exit 1
87+
fi
88+
8389
for dir in charts/*
8490
do
8591
if [ -d $dir ]; then
8692
if [ -f $dir/*.tgz ]; then
93+
echo "verify $dir ..."
8794
tar -xvf $dir/*.tgz -C $dir/
8895
fi
8996
fi
@@ -97,4 +104,4 @@ if [[ -n "${diff}" ]]; then
97104
exit 1
98105
fi
99106

100-
echo "latest chart tgz file verified."
107+
echo "chart tgz files verified."

0 commit comments

Comments
 (0)