Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stewartshea/d30fb9896a992515e048f85bc273c1ab to your computer and use it in GitHub Desktop.
Save stewartshea/d30fb9896a992515e048f85bc273c1ab to your computer and use it in GitHub Desktop.
Troubleshoot Unready Kustomizations with FluxCD
kubectl get Kustomization.kustomize.toolkit.fluxcd.io -n ${NAMESPACE} --context ${CONTEXT} -o json | jq -r '.items[] | select (.status.conditions[] | select(.type == "Ready" and .status == "False")) | "---\nKustomization Name: \(.metadata.name)\n\nReady Status: \(.status.conditions[] | select(.type == "Ready") | "\n ready: \(.status)\n message: \(.message)\n reason: \(.reason)\n last_transition_time: \(.lastTransitionTime)")\n\nReconcile Status:\(.status.conditions[] | select(.type == "Reconciling") |"\n reconciling: \(.status)\n message: \(.message)")\n---\n"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment