Skip to content

Instantly share code, notes, and snippets.

@dannysauer
Last active March 24, 2022 18:52
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 dannysauer/c327993abc5680d65975d87d492f4b80 to your computer and use it in GitHub Desktop.
Save dannysauer/c327993abc5680d65975d87d492f4b80 to your computer and use it in GitHub Desktop.
misc kubernetes / k8s junk
# put this in your ~/.bashrc
function kubectlgetall {
kubectl -n ${1:?usage: ${FUNCNAME[0]} <namespace>} get --ignore-not-found $( \
kubectl api-resources --verbs=list --namespaced -o name \
| grep -v --line-regexp -e "events.events.k8s.io" -e "events" \
| sort -u \
| paste -sd, \
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment