Skip to content

Conversation

@reshnm
Copy link
Contributor

@reshnm reshnm commented Oct 28, 2025

What this PR does / why we need it:

Kubernetes was not allowing to set any metadata field in the ShootTemplate:

strict decoding error: unknown field "spec.shootTemplate.metadata.labels"

This is because metadata is used in a nesting field and usually Kubernetes serializes metadata directly without the involvement of the CRD.
In order to allow to specify any field withing the ShootTemplate metadata field, x-kubernetes-preserve-unknown-fields: true has to be set.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

Allow to use the `metadata` field of the Shoot Template in the ProviderConfig

@reshnm reshnm requested a review from Diaphteiros October 28, 2025 16:22
@Diaphteiros Diaphteiros merged commit 6bb2dda into main Oct 29, 2025
8 checks passed
@Diaphteiros Diaphteiros deleted the fix/preserve-metadata-fields branch October 29, 2025 13:20
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.

3 participants