Skip to content

Instantly share code, notes, and snippets.

@jgensler8
Last active January 27, 2017 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgensler8/b74be25ddf6b286f57ba90129f0a4be9 to your computer and use it in GitHub Desktop.
Save jgensler8/b74be25ddf6b286f57ba90129f0a4be9 to your computer and use it in GitHub Desktop.
Find all Kubernetes third party resources in a given namespaces
# *run kubectl proxy*
# This guide assumes the third party api is: oidc.coreos.com/v1/
# Modify accordingly
curl -s http://localhost:8001/apis/oidc.coreos.com/v1/ | jq -r '.resources[].name' | awk '{ print "http://localhost:8001/apis/oidc.coreos.com/v1/namespaces/tectonic-system/"$0 }' | xargs curl | jq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment