Skip to content
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

fix: improve handling of old host CRDs #38

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

matskiv
Copy link
Contributor

@matskiv matskiv commented Dec 2, 2022

Always set .Spec.PreserveUnknownFields = false because that is needed for compatibility with apiextensions.k8s.io/v1, as mentioned in the docs - https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning

Release note:
The spec.preserveUnknownFields field of CRDs copied from the host cluster will always be set to false

This fixes the problem reported by the user here - https://loft-sh.slack.com/archives/C01N273CF4P/p1669781095611459

Always set .Spec.PreserveUnknownFields = false
@FabianKramm FabianKramm merged commit 30018e3 into loft-sh:main Dec 2, 2022
@matskiv matskiv deleted the fix-PreserveUnknownFields branch December 2, 2022 13:24
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.

2 participants