Skip to content

Instantly share code, notes, and snippets.

@Seanny123
Created December 29, 2020 00:10
Show Gist options
  • Save Seanny123/44e2711775c27efaaa9ef0d2007230df to your computer and use it in GitHub Desktop.
Save Seanny123/44e2711775c27efaaa9ef0d2007230df to your computer and use it in GitHub Desktop.
Script to get the Argo annotations from YAML output. Helpful when debugging Argo Workflow parameter errors.
# requires yq and jq to be installed
kubectl get pods $1 -o yaml | yq .metadata.annotations.\"workflows.argoproj.io/template\" | jq -r | jq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment