THREESCALE-12323 Upgrade operator envtest and controller-runtime used in CI#1141
Open
urbanikb wants to merge 3 commits into3scale:masterfrom
Open
THREESCALE-12323 Upgrade operator envtest and controller-runtime used in CI#1141urbanikb wants to merge 3 commits into3scale:masterfrom
urbanikb wants to merge 3 commits into3scale:masterfrom
Conversation
ab31258 to
3abe227
Compare
tkan145
requested changes
Feb 18, 2026
Comment on lines
+159
to
+162
| ## Location to install dependencies to | ||
| LOCALBIN ?= $(PROJECT_PATH)/bin | ||
| $(LOCALBIN): | ||
| mkdir -p $(LOCALBIN) |
Comment on lines
+183
to
+197
| # go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist | ||
| # $1 - target path with name of binary | ||
| # $2 - package url which can be installed | ||
| # $3 - specific version of package | ||
| define go-install-tool | ||
| @[ -f "$(1)-$(3)" ] || { \ | ||
| set -e; \ | ||
| package=$(2)@$(3) ;\ | ||
| echo "Downloading $${package}" ;\ | ||
| rm -f $(1) || true ;\ | ||
| GOBIN=$(LOCALBIN) go install $${package} ;\ | ||
| mv $(1) $(1)-$(3) ;\ | ||
| } ;\ | ||
| ln -sf $(1)-$(3) $(1) | ||
| endef |
Contributor
There was a problem hiding this comment.
Get rid of go-bin-install and move this to the same line
| go 1.22 | ||
| go 1.22.0 | ||
|
|
||
| toolchain go1.22.10 |
Contributor
There was a problem hiding this comment.
Remove the ending .0, we previously had issues with the build system; it wasn't recognizing the correct version of Go. I'm not sure if this issue has been fixed or not, but it's best to remove it to avoid any headache.
Perhaps also update the toolchain version, when I run go mod tidy, toolchain was bumped to go1.22.12
diff --git a/go.mod b/go.mod
index 1d02afbf..ea010cd2 100644
--- a/go.mod
+++ b/go.mod
@@ -1,8 +1,8 @@
module github.com/3scale/3scale-operator
-go 1.22
+go 1.22.0
-toolchain go1.22.10
+toolchain go1.22.12
....| - capabilities.3scale.net | ||
| resources: | ||
| - applicationauths | ||
| verbs: |
Contributor
There was a problem hiding this comment.
Hmm, this worries me. Maybe we should check the controller-gen changelog to see if they made any breaking changes.
Contributor
|
/retest |
- controller-runtime@1.19.7 requires k8s@1.31.X
- k8s@1.31.X requires controller-tools@0.16.X
- in this version of controller-runtime the envtest-setup has been
replaced with a tool installed with go -> Makefile needs
to be updated
- some duplication now exists in Makefile - the "newer" style
of installing tools is form more recent skeleton project, I have
only updated binaries that need to change to limit scope of this
change
3abe227 to
7876f98
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fix:
Validation
Run E2E test against existing cluster:
make test-e2eThis PR contains patch to
controller-runtimeand dependencies:k8sversion v0.29.0 -> v0.31.0controller-toolsversion v0.14.0 -> v0.16.5