Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Remove CGO_ENABLED=0 from build script
Similarly to console#2353, cluster-image-registry-operator has `CGO_ENABLED=0` passed to `go build`. This is most likely a leftover from time when image was based on alpine. As this is no longer the case, this commit removes it. The context of this change is a try to enable kuryr-kubernetes as SDN for OpenShift clusters. To do so, DNS resolvers of pods running on the cluster should support `use-vc` option in `resolv.conf`. `CGO_ENABLED=0` forces usage of golang's internal implementation of a resolver that doesn't support that option until golang 1.13. Removing it will make image-registry-operator use libc resolver, which is honoring the option and make sure that underlying OpenStack cloud URL is resolved correctly. Deeper context of this is that OpenStack Octavia in version we're aiming to support is not allowing UDP loadbalancer listeners, meaning that we need to rely on TCP even for DNS. I know, that's quite crazy, but this change should not have any effect for the image-registry-operator.
- Loading branch information