Skip to content

Instantly share code, notes, and snippets.

View JustinCarmony's full-sized avatar

Justin Carmony JustinCarmony

View GitHub Profile
#!/usr/bin/env bash
NAMESPACE=${1:-default}
DEPLOYMENTS=$(kubectl get deployments -n "${NAMESPACE}" -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}')
for d in $DEPLOYMENTS; do
echo "Checking… $d"
kubectl -n $NAMESPACE rollout status --watch deployment $d;
done