Viewing legacy documentation for Kubebuilder, check out the latest documentation instead.
Controllers for Core Resources
It is possible to create Controllers for Core Resources, or for Resources defined outside your project.
kubebuilder create api --group apps --version v1 --kind Deployment
When creating controllers for core and existing types, it may be necessary to modify the scaffold tests before they pass.
This is because the empty object may not be valid as required fields are not set by the scaffolding.