Merge pull request #145 from andyzhangx/verify-helm-chart2

fix: update tgz chart file
This commit is contained in:
Andy Zhang 2021-01-31 21:42:41 +08:00 committed by GitHub
commit 0dd317be23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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."