kubebuilder 中文文档由云原生社区主导翻译。任何问题可以在这儿提issue。issue模版可以参考这个

Object/DeepCopy

这些标记控制何时生成 DeepCopyruntime.Object 实现方法。

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