-
Notifications
You must be signed in to change notification settings - Fork 442
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 envtest version when latest need golang 1.23 #3360
base: main
Are you sure you want to change the base?
fix envtest version when latest need golang 1.23 #3360
Conversation
@@ -67,6 +67,8 @@ OPERATOR_SDK_VERSION ?= 1.29.0 | |||
|
|||
CERTMANAGER_VERSION ?= 1.10.0 | |||
|
|||
ENVTEST_VERSION ?= release-0.18 |
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.
can we use 0.19?
https://github.com/kubernetes-sigs/controller-runtime/releases
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.
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.
Could we pin this to https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.18.5 ?
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.
release-0.18 maybe 0.18 latest? should we need 0.18 latest?
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.
If we're pinning it, I'd prefer a specific tag rather than a branch,
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.
ok , i got it
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.
go: downloading sigs.k8s.io/controller-runtime v0.18.5
go: sigs.k8s.io/controller-runtime/tools/[email protected]: module sigs.k8s.io/[email protected] found, but does not contain package sigs.k8s.io/controller-runtime/tools/setup-envtest
it seems can not use specific tag
I have restarted tests and still failed. It seems there are some issues
|
8387ba2
to
cfaa450
Compare
The tests are still failing
|
let me see see |
cfaa450
to
62cb8aa
Compare
62cb8aa
to
2c90663
Compare
@@ -498,7 +500,7 @@ $(CONTROLLER_GEN): $(LOCALBIN) | |||
.PHONY: envtest | |||
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary. | |||
$(ENVTEST): $(LOCALBIN) | |||
@test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest | |||
@test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$(ENVTEST_VERSION) |
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.
There's some weirdness going on here with the installation in the CI. @huanghuangzym can you try using our install macro instead:
@test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$(ENVTEST_VERSION) | |
$(call go-get-tool,$(ENVTEST), sigs.k8s.io/controller-runtime/tools/setup-envtest,$(ENVTEST_VERSION)) |
Description:
Link to tracking Issue(s):
Testing:
Documentation: