-
Notifications
You must be signed in to change notification settings - Fork 24
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
hack: Update controller-gen to v0.14.0 #337
hack: Update controller-gen to v0.14.0 #337
Conversation
8c398eb
to
cb151c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you should also update auto-generated file api/v1alpha1/zz_generated.deepcopy.go
Golang v1.22 doesn't work well[1] with any controller-gen < v0.14.0. Updating controller-gen mandates removal of trivialVersions boolean marker previously used for legacy v1beta1 CRDs[2]. [1] kubernetes-sigs/controller-tools#888 (comment) [2] https://github.com/kubernetes-sigs/controller-tools/releases/tag/v0.7.0 Signed-off-by: Anoop C S <anoopcs@samba.org>
Go versions 1.16 and earlier used a different syntax for build constraints, with a "// +build" prefix. We have moved further and at this point it doesn't make sense to keep the old format in source files with current active Go versions. Signed-off-by: Anoop C S <anoopcs@samba.org>
a0c6c71
to
efb775e
Compare
Let me know if anything more is required here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks ok to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Golang v1.22 doesn't work well with any controller-gen < v0.14.0. Updating controller-gen mandates removal of trivialVersions boolean marker previously used for legacy v1beta1 CRDs.
fixes #335