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

hack: Update controller-gen to v0.14.0 #337

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

anoopcs9
Copy link
Collaborator

@anoopcs9 anoopcs9 commented Apr 22, 2024

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

Copy link
Collaborator

@synarete synarete left a 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

hack/install-tools.sh Show resolved Hide resolved
@synarete synarete self-requested a review April 22, 2024 12:23
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>
@anoopcs9
Copy link
Collaborator Author

Let me know if anything more is required here.

Copy link
Collaborator

@phlogistonjohn phlogistonjohn left a 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.

@anoopcs9 anoopcs9 requested review from synarete and removed request for synarete April 25, 2024 05:19
Copy link
Collaborator

@synarete synarete left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mergify mergify bot merged commit 78abb55 into samba-in-kubernetes:master Apr 25, 2024
13 checks passed
@anoopcs9 anoopcs9 deleted the update-controller-gen branch May 3, 2024 05:20
@mergify mergify bot added the priority-review This PR deserves a look label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-review This PR deserves a look
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SIGSEGV during operator deployment using controller-gen
3 participants