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

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

Copy link
Copy Markdown
Contributor

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>
@hardikdr hardikdr added the area/switch-automation Automation processes for network switch management and operations. label Aug 21, 2026
@hardikdr hardikdr added this to Roadmap Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/switch-automation Automation processes for network switch management and operations.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants