3.4.0 or later
You can check the tested versions in each example:
- How to create a project with kubebuilder?
- What's inside
api/<versions>/
directory? - What's inside
internal/controller
directory (controllers
directory for project created with kubebuilder version 3.9 or earlier)? - What's inside
config/
directory? - What's a
Manager
incmd/main.go
(main.go
for project created with kubebuilder version 3.9 or earlier) ?
- What's inside
- How to add an API (e.g.
Password
)?- Resource
- Where will the new type definition be stored?
- What is
Password
,PasswordSpec
, andPasswordStatus
structs?
- Controller
- What's the input (arguments) and output (returned value) of
Reconcile
function ofReconciler
interface?
- What's the input (arguments) and output (returned value) of
- Resource
- What's markers? (e.g.
+kubebuilder:object:root
)- If controller needs to manipulate Secret, which marker needs to be added?
- OwnerReferences