Skip to content

Instantly share code, notes, and snippets.

@hajowieland
Created February 22, 2020 15:24
Show Gist options
  • Save hajowieland/8877523e58b12337ccc91fdbad937857 to your computer and use it in GitHub Desktop.
Save hajowieland/8877523e58b12337ccc91fdbad937857 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Depending on the environment you want to deploy there could be different custom values you want set
# This loop checks which stages are present and then lints them together with the helm chart
for chart in helm-charts/* ; do
if [ `ls $chart | grep 'prd'` ]; then
helm lint $chart -f $chart/prd_values.yaml
elif [ `ls $chart | grep 'dev'` ]; then
helm lint $chart -f $chart/dev_values.yaml
else
helm lint $chart
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment