3.0.0 KubeBuilder version, preliminary support for plugins was added. You can Extend the CLI and Scaffolds as well. See that when users run the CLI commands to perform the scaffolds, the plugins are used:
- To initialize a project with a chain of global plugins:
kubebuilder init --plugins=pluginA,pluginB
- To perform an optional scaffold using custom plugins:
kubebuilder create api --plugins=pluginA,pluginB
This section details how to extend Kubebuilder and create your plugins following the same layout structures.