The hierarchical namespaces project in Kubernetes allows us to organize namespaces in a tree structure. But, since it is just a layer on top of vanilla Kubernetes, it doesn't offer an API to do anything more complex with that tree structure.
We want to be able to list, and perhaps watch, all namespaced resources belonging to any namespace and its descendants. We can use Kubernetes API extensions to accomplish this. We can use a similar approach to how we are solving this for Rancher Projects.
Goal for this Hackweek
- Create an API extension that responds with a list of resources that belong to the requested namespace or its descendants
- Create a YAML manifest and Dockerfile to build and deploy it
- Add a kubectl plugin to support this
- Stretch goal: add the ability to watch resources by namespace in addition to listing
Looking for hackers with the skills:
Nothing? Add some keywords!
This project is part of:
Hack Week 22
This project is one of its kind!