A little helper to print all Kubernetes resources in a namespace.

Here it is:

Local version here.

It is actually a refinement of this answer on StackOverflow, with the following additions:

  • defaults to namespace default;
  • does not print anything if there are no resources of a given kind, producing a more compact output.

The downside of the second bullet is that it is most probably not exactly the best thing for very crowded namespaces.

The script doubles down as a library and a script that can be executed, in pure POSIX shell modulino spirit.