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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Update controller gen #1918

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

MikeSpreitzer
Copy link
Contributor

Summary

This PR updates the version of controller-tools used, to 0.14.0. This fixes issue #1917 , while controller-tools release 0.13.0 does not. This is a little scary because https://github.com/kubernetes-sigs/controller-tools/releases/tag/v0.14.0 says "鈿狅笍 Bump k8s deps to v0.29.0 by @Neo2308 in kubernetes-sigs/controller-tools#872". But the generated files seem to be working.

Related issue(s)

Fixes #1917

This is the latest that does not require a higher Kube release than 1.28.

Signed-off-by: Mike Spreitzer <mspreitz@us.ibm.com>
This is needed to work with go 1.22, but scares me because the release
notes talk about depending on Kubernetes release 1.29.

Signed-off-by: Mike Spreitzer <mspreitz@us.ibm.com>
@kcp-ci-bot kcp-ci-bot added dco-signoff: yes Indicates the PR's author has signed the DCO. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 19, 2024
@Neo2308
Copy link

Neo2308 commented Mar 19, 2024

@MikeSpreitzer a safer way to handle this would be to temporarily add GOTOOLCHAIN=go1.21.8 to

GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION)

i.e.

GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION)

->

GOBIN=$(LOCALBIN) GOTOOLCHAIN=go1.21.8 go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION)

This could be removed once operator-framework/operator-sdk#6651 is completed & a newer version of operator sdk is released :)

Signed-off-by: Mike Spreitzer <mspreitz@us.ibm.com>
@kcp-ci-bot kcp-ci-bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 19, 2024
@MikeSpreitzer
Copy link
Contributor Author

Thanks, @Neo2308 , I have taken your suggestion.

@MikeSpreitzer
Copy link
Contributor Author

/cc @pdettori
/cc @ezrasilvera
/cc @nirrozenbaum
/cc @waltforme

@ezrasilvera
Copy link
Contributor

/lgtm
/approve

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 20, 2024
@kcp-ci-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ezrasilvera

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kcp-ci-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 069ae8862ac096cbdf5b28dd4faedbdcdfadf1c9

@kcp-ci-bot kcp-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 20, 2024
@kcp-ci-bot kcp-ci-bot merged commit 7553041 into kubestellar:main Mar 20, 2024
13 checks passed
@MikeSpreitzer MikeSpreitzer deleted the update-controller-gen branch March 20, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has signed the DCO. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

bug: controller-gen redux
4 participants