Use helm template to avoid tiller connections

This commit is contained in:
Carlos Rodriguez Hernandez
2019-09-20 09:07:04 +00:00
parent 96cdd6e56b
commit af48612246
+4 -4
View File
@@ -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