Created
June 22, 2020 18:43
-
-
Save tym-xqo/ed40971463a6e1c0c69f5c3ad219326a to your computer and use it in GitHub Desktop.
Check helm status across data centers
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
#!/bin/bash | |
set -e | |
env=${1-integration} | |
chart=${2-apps} | |
config=$(kubectl config get-contexts -o name | grep "$env") | |
for i in $config; do | |
kubectl config use-context $i | |
helm3 status $chart | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment