diff --git a/githooks/pre-push/helm-lint b/githooks/pre-push/helm-lint index edb088516..7d205bdb7 100755 --- a/githooks/pre-push/helm-lint +++ b/githooks/pre-push/helm-lint @@ -19,13 +19,13 @@ for chartName in $( cut -d'/' -f1,2 <<< "$filesToBePushed" | uniq ); do failed=1 fi - printf '\033\033[0;34m- Running helm install --dry-run %s\n\033[0m' "$chartPath" + printf '\033\033[0;34m- Running helm template %s\n\033[0m' "$chartPath" helm repo add bitnami https://charts.bitnami.com/bitnami >> /dev/null helm dependency update "$chartPath" >> /dev/null - if helm install --dry-run "$chartPath"; then - printf '\033[0;32m\U2705 helm install --dry-run %s\n\n\033[0m' "$chartPath" + if helm template "$chartPath" >> /dev/null; then + printf '\033[0;32m\U2705 helm template %s\n\n\033[0m' "$chartPath" else - printf '\033[0;31m\U1F6AB helm install --dry-run %s failed. Push cancelled.\n\n\033[0m' "$chartPath" + printf '\033[0;31m\U1F6AB helm template %s failed. Push cancelled.\n\n\033[0m' "$chartPath" failed=1 fi fi