Skip to content

Commit 70f4f3e

Browse files
committed
Limit controller-runtime to v0.17.2 for Go 1.21 support
Signed-off-by: Michael Shen <mshen@redhat.com>
1 parent d11572e commit 70f4f3e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

config/build_image-v5.0.0.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ go install k8s.io/code-generator/cmd/openapi-gen@${OPENAPI_GEN_VERSION}
3939
#########
4040
# ENVTEST
4141
#########
42-
# We do not enforce versioning on setup-envtest
43-
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
42+
# Latest is only compatible with Go 1.22
43+
# https://github.com/kubernetes-sigs/controller-runtime/issues/2744
44+
ENVTEST_VERSION="bf15e44028f908c790721fc8fe67c7bf2d06a611"
45+
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@${ENVTEST_VERSION}
4446

4547
##############
4648
# govulncheck

0 commit comments

Comments
 (0)