Skip to content

Instantly share code, notes, and snippets.

@tym-xqo
Created June 22, 2020 18:43
Show Gist options
  • Save tym-xqo/ed40971463a6e1c0c69f5c3ad219326a to your computer and use it in GitHub Desktop.
Save tym-xqo/ed40971463a6e1c0c69f5c3ad219326a to your computer and use it in GitHub Desktop.
Check helm status across data centers
#!/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