fix: update tgz chart file

This commit is contained in:
andyzhangx 2021-01-31 13:33:39 +00:00
parent 52430fa247
commit 31d86050c1
2 changed files with 17 additions and 3 deletions

View File

@ -79,8 +79,22 @@ validate_image "${expected_nfs_image}" "${nfs_image}"
echo "Images in deploy/ matches those in the latest helm chart."
# verify whether latest chart config has changed
tar -xvf charts/latest/*.tgz -C charts/latest/
# verify whether chart config has changed
diff=`git diff`
if [[ -n "${diff}" ]]; then
echo "${diff}"
exit 1
fi
for dir in charts/*
do
if [ -d $dir ]; then
if [ -f $dir/*.tgz ]; then
echo "verify $dir ..."
tar -xvf $dir/*.tgz -C $dir/
fi
fi
done
diff=`git diff`
if [[ -n "${diff}" ]]; then
@ -90,4 +104,4 @@ if [[ -n "${diff}" ]]; then
exit 1
fi
echo "latest chart tgz file verified."
echo "chart tgz files verified."