-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set preserveUnknownFields to false in the CRD conversion webhook patch #933
Comments
cc: @droot |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
This seems to also affect clusters that enable |
yes, defaulting requires the v1 CRD and a structural schema. We could document this better in the defaulting marker docs and the book |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
c/c @estroz |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale we should do this by default for go.kubebuilder.io/v3 scaffolding, so that we can turn on conversion without changes in semantics |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/re-open |
/reopen |
@camilamacedo86: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/remove-lifecycle rotten |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
I think it's better to add preserveUnknownFields: false when use kubebuilder to generate and I met the same problem when I type make install command.My kubernetes version is 1.20,It's not friendly. |
kube-apiserver requires
spec.preserveUnknownFields
to befalse
whenconversion.strategy
isWebhook
.Ref: https://github.com/kubernetes/kubernetes/blob/1d812991b63f42485d5f2aa8c883f142445fd09a/staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation.go#L265
See release note in kubernetes/kubernetes#78426
/kind bug
The text was updated successfully, but these errors were encountered: