-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This was required as setup-envtest@latest no longer works with Go versions less than 1.22. controller-tools was also updated as it panics if 0.13.0 is used with Go 1.22. 0.14.0 must be used instead. Go version also moved to 1.21 to comply with new mod shape.
- Loading branch information
Showing
11 changed files
with
40 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,7 +94,7 @@ fi | |
|
||
# Ensure we have the right version of GO | ||
|
||
#doc# | Go | 1.20 | https://golang.org/doc/install # | ||
#doc# | Go | 1.22 | https://golang.org/doc/install # | ||
if ! command -v go > /dev/null 2>&1; then | ||
write-error "Go must be installed manually; see https://golang.org/doc/install" | ||
exit 1 | ||
|
@@ -104,7 +104,7 @@ GOVER=$(go version) | |
write-info "Go version: ${GOVER[*]}" | ||
|
||
GOVERREGEX=".*go1.([0-9]+).([0-9]+).*" | ||
GOVERREQUIRED="go1.20.*" | ||
GOVERREQUIRED="go1.22.*" | ||
GOVERACTUAL=$(go version | { read _ _ ver _; echo "$ver"; }) | ||
|
||
if ! [[ $GOVERACTUAL =~ $GOVERREGEX ]]; then | ||
|
@@ -113,7 +113,7 @@ if ! [[ $GOVERACTUAL =~ $GOVERREGEX ]]; then | |
fi | ||
|
||
GOMINORVER="${BASH_REMATCH[1]}" | ||
GOMINORREQUIRED=20 | ||
GOMINORREQUIRED=22 | ||
|
||
# We allow for Go versions above the min version, but prevent versions below. This is safe given Go's back-compat guarantees | ||
if ! [[ $GOMINORVER -ge $GOMINORREQUIRED ]]; then | ||
|
@@ -179,11 +179,11 @@ go-install() { | |
fi | ||
} | ||
|
||
#doc# | conversion-gen | v0.28.0 | https://pkg.go.dev/k8s.io/code-generator/cmd/conversion-gen | | ||
go-install conversion-gen k8s.io/code-generator/cmd/[email protected].0 | ||
#doc# | conversion-gen | v0.28.8 | https://pkg.go.dev/k8s.io/code-generator/cmd/conversion-gen | | ||
go-install conversion-gen k8s.io/code-generator/cmd/[email protected].8 | ||
|
||
#doc# | controller-gen | v0.13.0 | https://book.kubebuilder.io/reference/controller-gen | | ||
go-install controller-gen sigs.k8s.io/controller-tools/cmd/controller-gen@v0.13.0 | ||
#doc# | controller-gen | v0.14.0 | https://book.kubebuilder.io/reference/controller-gen | | ||
go-install controller-gen sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0 | ||
|
||
#doc# | kind | v0.20.0 | https://kind.sigs.k8s.io/ | | ||
go-install kind sigs.k8s.io/[email protected] | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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