Merge pull request #163 from andyzhangx/helm-index-verify

test: add helm chart index verification
This commit is contained in:
Andy Zhang 2021-02-20 09:51:42 +08:00 committed by GitHub
commit b7ef7d00b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 2 deletions

View File

@ -44,7 +44,7 @@ spec:
resources: resources:
limits: limits:
cpu: 100m cpu: 100m
memory: 200Mi memory: 100Mi
requests: requests:
cpu: 10m cpu: 10m
memory: 20Mi memory: 20Mi

View File

@ -39,7 +39,7 @@ spec:
resources: resources:
limits: limits:
cpu: 100m cpu: 100m
memory: 200Mi memory: 100Mi
requests: requests:
cpu: 10m cpu: 10m
memory: 20Mi memory: 20Mi

View File

@ -17,6 +17,7 @@
set -euo pipefail set -euo pipefail
echo "begin to verify chart tgz files ..." echo "begin to verify chart tgz files ..."
git config core.filemode false
# verify whether chart config has changed # verify whether chart config has changed
diff=`git diff` diff=`git diff`
@ -46,3 +47,9 @@ if [[ -n "${diff}" ]]; then
fi fi
echo "chart tgz files verified." echo "chart tgz files verified."
echo "verify helm chart index ..."
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
helm repo add csi-driver-smb https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/charts
helm search repo -l csi-driver-nfs
echo "helm chart index verified."