Generate k8s api permissions docs
What does this MR do?
Generates the documentation table for RBAC requirements for Kubernetes. The mage target mage k8s:generatePermissionsDocs
generates the doc and fails if there are undocumented coreV1()
calls.
This is a first iteration, not great but very useful.
Why was this MR needed?
We constantly forged to document the API RBAC requirements, such as in #36961 (closed). This will at least force us to think about it.
What's the best way to test this MR?
Run mage k8s:generatePermissionsDocs
inspect the output in docs/executors/kubernetes.md
.
What are the relevant issue numbers?
Close #36961 (closed)
Edited by Georgi N. Georgiev