Viewing legacy documentation for Kubebuilder, check out the latest documentation instead.

Object/DeepCopy

These markers control when DeepCopy and runtime.Object implementation methods are generated.

// +k8s:deepcopy-gen
raw
enables or disables object interface & deepcopy implementation generation for this package
raw
// +k8s:deepcopy-gen
raw
overrides enabling or disabling deepcopy generation for this type
raw
// +k8s:deepcopy-gen:interfaces
string
enables object interface implementation generation for this type
string
// +kubebuilder:object:generate
bool
enables or disables object interface & deepcopy implementation generation for this package
bool
// +kubebuilder:object:generate
bool
overrides enabling or disabling deepcopy generation for this type
bool
// +kubebuilder:object:root
bool
enables object interface implementation generation for this type
bool