gardener-attic / gardener-extension-provider-kubevirt

Gardener Extension Provider for KubeVirt
Other
11 stars 16 forks source link

Deserialize custom resources with EnableStrict #106

Closed stoyanr closed 3 years ago

stoyanr commented 3 years ago

How to categorize this PR?

/area control-plane /kind enhancement /priority 3 /platform kubevirt

What this PR does / why we need it:

Which issue(s) this PR fixes: Fixes https://github.com/gardener/gardener-extension-provider-azure/pull/270, see also https://github.com/gardener/gardener-extension-provider-azure/pull/271 and https://github.com/gardener/gardener-extension-provider-gcp/pull/249.

Special notes for your reviewer:

Release note:

Extension resource configs (`InfrastructureConfig`, `ControlPlaneConfigs`, `WorkerConfig`) are now deserialized in "strict" mode, including during validation by the admission webhook. This means that resources with fields that are not allowed by the API schema will be rejected by validation. Creating new shoots containing such resources will not be possible, and reconciling existing shoots will fail with an appropriate error until you manually update the shoot to make sure any extension resource configs contained in it are valid.