Gitlab Runner `env` value not evaluated
Summary
When adding new env's to the Gitlab Runners in values.yaml, the env's not add to the register command.
Steps to reproduce
add the following values:
gitlab-runner:
runners:
env:
DOCKER_HOST: tcp://gitlab-dind.gitlab.svc.cluster.local:2375
DOCKER_DRIVER: overlay
Current behavior
after running helm install we can see that gitlab-gitlab-runner configmap includes:
register-the-runner: "#!/bin/bash\nMAX_REGISTER_ATTEMPTS=30\n\nfor i in $(seq 1
\"${MAX_REGISTER_ATTEMPTS}\"); do\n echo \"Registration attempt ${i} of ${MAX_REGISTER_ATTEMPTS}\"\n
\ /entrypoint register \\\n --non-interactive\n\n retval=$?\n\n if [ ${retval}
= 0 ]; then\n break\n elif [ ${i} = ${MAX_REGISTER_ATTEMPTS} ]; then\n exit
1\n fi\n\n sleep 5 \ndone\n\nexit 0\n"
the https://gitlab.com/charts/gitlab-runner/blob/master/templates/configmap.yaml#L72 not evaluated...
I tried to download and install only the Gitlab-runner helm chart and its working perfectly.. can someone explain that?
Thanks!
Expected behavior
evaluated statement..
Edited by Or Biran