Skip to content

Instantly share code, notes, and snippets.

@noseka1
Last active August 19, 2021 16:37
Show Gist options
  • Save noseka1/3c898eb867108f808dcf1883989f5dbb to your computer and use it in GitHub Desktop.
Save noseka1/3c898eb867108f808dcf1883989f5dbb to your computer and use it in GitHub Desktop.
Using jq with Kubernetes and OpenShift

Examples

$ oc get pod <POD_NAME> -o json | jq -r '.spec.volumes[] | select(.name=="config").secret.secretName'

References

JSONPath in kubectl CLI.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment