Init container breaks proxy configuration
Currently, we use K8S PodPresets to ensure that all pods get the appropriate squid proxy ENV variables. PodPresets are not applied to Init containers. See PodPresets
When this was merged. The init container was stuck waiting to contact gitlab.com but was not configured for the proxy.
One possible solution is to include:
env:
{{ include "gitlab-runner.runner-env-vars" . | indent 8 }}
In the Init spec in the templates/deployment.yaml
file.
That would allow us to define ENVS for both containers