Kubernetes provides a collection of code generators to assist with developing APIs. These code generators generate useful libraries such as clients, openapi definitions, copying go structs, etc.
The kubegen
uses directory structure conventions to detect Kubernetes APIs definitions and run the standard
set of Kubernetes code generators.
There are 2 methods for running kubegen