Skip to content

Add kubebuilder markers for ApplyConfiguration generation#376

Draft
felix-kaestner wants to merge 1 commit into
mainfrom
applyconfiguration
Draft

Add kubebuilder markers for ApplyConfiguration generation#376
felix-kaestner wants to merge 1 commit into
mainfrom
applyconfiguration

Conversation

@felix-kaestner
Copy link
Copy Markdown
Contributor

@felix-kaestner felix-kaestner commented May 26, 2026

Add +kubebuilder:ac:generate and +kubebuilder:ac:output:package markers to API doc.go files to enable automatic generation of typed ApplyConfiguration builders for all API groups.

ApplyConfiguration types are required for Server-Side Apply (SSA), which allows controllers to declaratively manage individual fields of shared resources without conflicts. Generated builders provide type-safe construction of partial objects used in Apply calls, replacing unstructured patches and reducing the risk of runtime errors.

Additionally, set ssa: true in the PROJECT file for all resources and add missing +genclient markers to ensure controller-runtime generates the corresponding Apply method on typed clients.

Add +kubebuilder:ac:generate and +kubebuilder:ac:output:package markers
to API doc.go files to enable automatic generation of typed
ApplyConfiguration builders for all API groups.

ApplyConfiguration types are required for Server-Side Apply (SSA), which
allows controllers to declaratively manage individual fields of shared
resources without conflicts. Generated builders provide type-safe
construction of partial objects used in Apply calls, replacing
unstructured patches and reducing the risk of runtime errors.

Additionally, set `ssa: true` in the PROJECT file for all resources and
add missing +genclient markers to ensure controller-runtime generates
the corresponding Apply method on typed clients.

Signed-off-by: Felix Kästner <felix.kaestner@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant