Created
September 11, 2020 08:13
-
-
Save minrk/83c9c87b070ba8dac5c1572ec96bb2dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# use helm 2, assumes homebrew | |
export PATH=/usr/local/opt/helm@2/bin:$PATH | |
deployments="$@" | |
if [[ -z "$deployments" ]]; then | |
deployments="staging prod ovh" # turing | |
fi | |
for deployment in $deployments; do | |
echo $deployment | |
kubectx $deployment # assumes you have kubectx set up like me! | |
helm diff -q upgrade $deployment \ | |
./mybinder/ \ | |
-f config/$deployment.yaml \ | |
-f secrets/config/common.yaml \ | |
-f secrets/config/$deployment.yaml \ | |
| grep -C 1 -v '^[[:space:]]' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment