Skip to content

Commit

Permalink
Limit controller-runtime to v0.17.2 for Go 1.21 support
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Shen <mshen@redhat.com>
  • Loading branch information
mjlshen committed Apr 1, 2024
1 parent d11572e commit 55d9c4a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions config/build_image-v5.0.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ go install sigs.k8s.io/kustomize/kustomize/${KUSTOMIZE_VERSION%%.*}@${KUSTOMIZE_
################
# controller-gen
################
CONTROLLER_GEN_VERSION="v0.14.0"
go install sigs.k8s.io/controller-tools/cmd/controller-gen@${CONTROLLER_GEN_VERSION}
# Latest is only compatible with Go 1.22
# https://github.com/kubernetes-sigs/controller-runtime/issues/2744
ENVTEST_VERSION="bf15e44028f908c790721fc8fe67c7bf2d06a611"
go install sigs.k8s.io/controller-tools/cmd/controller-gen@${ENVTEST_VERSION}

#############
# openapi-gen
Expand All @@ -39,8 +41,8 @@ go install k8s.io/code-generator/cmd/openapi-gen@${OPENAPI_GEN_VERSION}
#########
# ENVTEST
#########
# We do not enforce versioning on setup-envtest
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
CONTROLLER_RUNTIME_VERSION="v0.17.2"
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@${CONTROLLER_RUNTIME_VERSION}

##############
# govulncheck
Expand Down

0 comments on commit 55d9c4a

Please sign in to comment.