Skip to content

Instantly share code, notes, and snippets.

@adamancini
Created February 7, 2025 19:27
Show Gist options
  • Save adamancini/5b6f0e34ac6912839345a0652dfef42c to your computer and use it in GitHub Desktop.
Save adamancini/5b6f0e34ac6912839345a0652dfef42c to your computer and use it in GitHub Desktop.
kubectl get rolebindings,clusterrolebindings \
--all-namespaces \
-o custom-columns='KIND:kind,NAMESPACE:metadata.namespace,NAME:metadata.name,SERVICE_ACCOUNTS:subjects[?(@.kind=="ServiceAccount")].name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment