The sigs.k8s.io/controller-runtime v0.14.6 dependency requires k8s.io/kube-openapi v0.0.0-20230308215209-15aac26d736a which does not build with Go 1.18.
root@a34dfa4af2ea:/code# make build
/code/bin/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..."
go fmt ./...
go vet ./...
# k8s.io/kube-openapi/pkg/cached
/go/pkg/mod/k8s.io/kube-openapi@v0.0.0-20230308215209-15aac26d736a/pkg/cached/cache.go:242:16: undefined: atomic.Pointer
make: *** [Makefile:58: vet] Error 2
go mod graph |grep -E "controller-runtime.*kube-openapi"
sigs.k8s.io/controller-runtime@v0.14.6 k8s.io/kube-openapi@v0.0.0-20221012153701-172d655c2280
The
sigs.k8s.io/controller-runtime v0.14.6
dependency requiresk8s.io/kube-openapi v0.0.0-20230308215209-15aac26d736a
which does not build with Go 1.18.It does build with Go 1.19.
Expected Behaviour
Current Behaviour
Possible Solution
We should update
go.mod
to > 1.18Steps to Reproduce (for bugs)
docker run -it --rm -v ${PWD}:/code -w /code golang:1.18
make build
Context
Your Environment
Operating System and version (e.g. Linux, Windows, MacOS):
How are you running Tinkerbell? Using Vagrant & VirtualBox, Vagrant & Libvirt, on Packet using Terraform, or give details:
Link to your project or a code example to reproduce issue: