From af48612246cbefeb5c50145db44f97fee8419ee8 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Fri, 20 Sep 2019 09:07:04 +0000 Subject: [PATCH] Use helm template to avoid tiller connections --- githooks/pre-push/helm-lint | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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