eclipse-symphony / symphony

Symphony project
MIT License
27 stars 17 forks source link

Pin setup-envtest version to fit golang 1.20.2 #184

Closed msftcoderdjw closed 2 months ago

msftcoderdjw commented 2 months ago

Issue description:

setup-envtest module bumped its golang version to 1.22.0 recently.

By checking the go.mod, we can found the last available version to golang 1.20.2 is v0.0.0-20240320141353-395cfc7486e6, we need to pin to this version since symphony-k8s image uses golang:1.20.2-alpine (golang 1.20.2) https://pkg.go.dev/sigs.k8s.io/controller-runtime/tools/setup-envtest@v0.0.0-20240320141353-395cfc7486e6?tab=versions

Otherwise building k8s image will fail at running mage operatorTest.

References:

v0.0.0-20240320141353-395cfc7486e6: https://github.com/kubernetes-sigs/controller-runtime/blob/395cfc7486e652d19fe1b544a436f9852ba26e4f/tools/setup-envtest/go.mod

image

latest: https://github.com/kubernetes-sigs/controller-runtime/blob/main/tools/setup-envtest/go.mod

image