Skip to content

Instantly share code, notes, and snippets.

@georgegoh
Created September 30, 2021 01:01
Show Gist options
  • Save georgegoh/d18cc0058b937e0cfb819bceaa770612 to your computer and use it in GitHub Desktop.
Save georgegoh/d18cc0058b937e0cfb819bceaa770612 to your computer and use it in GitHub Desktop.
kubectl get psp -o json | jq -r '.items[] | if .spec.privileged or .spec.allowPrivilegeEscalation then .metadata.name else empty end'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment