You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
k15r
changed the title
Defaulting webhook?
[POC] Defaulting CR values without defaulting webhook
May 12, 2023
k15r
changed the title
[POC] Defaulting CR values without defaulting webhook
[POC] Defaulting CR values without defaulting webhook [TB: 1d]
May 12, 2023
If one deploys a CR that misses myValue, myPropery.myValue, spec.myProperty.myValue the CR will be automatically have spec.myProperty.myValue=3. The same will happen if one deletes any of the aforementioned fields.
So, this can be used for simple types as ints, complex objects like spec. This works at least on Kubernetes v1.25 and above, which is the version used by SKR and Gardener. Older versions were not tested.
Prepare a quick demo for defaulting mechanics without a defaulting webhook:
The text was updated successfully, but these errors were encountered: