Skip to content

Instantly share code, notes, and snippets.

@tswicegood
Created April 10, 2019 03:02
Show Gist options
  • Save tswicegood/51339f8ca7614face854f490cb0234b1 to your computer and use it in GitHub Desktop.
Save tswicegood/51339f8ca7614face854f490cb0234b1 to your computer and use it in GitHub Desktop.
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment