Closed alexzielenski closed 11 months ago
Can we have a test for this?
We should put that on hold while we determine if we want to keep mustEnforceDefault
or not.
/lgtm /approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: alexzielenski, apelisse
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Some types have surprising defaults such as
v1.Time
discussed in https://github.com/kubernetes/kubernetes/issues/118771#issuecomment-1599488644.Had further discussion about a solution and we agreed in https://github.com/kubernetes/kubernetes/issues/109427#issuecomment-1723313763 that removing implicit
{}
defaults for struct fields with custom type is the best way to correct the schemas.Original fix was included in https://github.com/kubernetes/kube-openapi/pull/419#discussion_r1312056111 but split off to keep things tidy.
/cc @apelisse