Apply Configuration
这些 markers 控制何时为包中的 kind 生成 ApplyConfiguration 类型。这些类型为构建 Server-Side Apply 补丁提供了类型安全的方式。
关于 --ssa 标志如何启用此生成,以及如何使用生成类型的示例,请参阅 Server-Side Apply 参考。
- // +kubebuilder:ac:output:package
-
- string
overrides the default output package for the applyconfiguration generation, supports relative paths to the API directory. The default value is "applyconfiguration"
- string
- // +kubebuilder:ac:generate
-
- bool
overrides enabling or disabling applyconfiguration generation for the package
- bool
- // +kubebuilder:ac:generate
-
- bool
overrides enabling or disabling applyconfiguration generation for the type, can be used to generate applyconfiguration for a single type when the package generation is disabled, or to disable generation for a single type when the package generation is enabled
- bool