vmware / antrea-operator-for-kubernetes

Antrea Operator for Kubernetes deployments
Other
15 stars 12 forks source link

Install Golang 1.19 for builds #90

Closed ksamoray closed 10 months ago

ksamoray commented 10 months ago

Starting with Go 1.21, the runtime system needs to have a version of glibc "compatible" with the version available at build time. The ubi8 image comes with a very old version of glibc compared to the golang builder. so, the Antrea Operator binaries will fail to run and hit GLIBC issue.

To fix this issue, we need to install Golang manually in ubi8 image when making docker build. Moreover, we use Golang 1.19 for Github workflow build action. To align this workflow, we install Golang 1.19 for Github workflow build tag action and Docker image build.

antoninbas commented 10 months ago

The Dockerfile builds with CGO_ENABLED=0, so that should not be an issue?

ksamoray commented 10 months ago

Following @antoninbas comment, PR is non required. Closing.