mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-09 05:06:29 +10:00
Use helm template to avoid tiller connections
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user