Skip to content

Updated mountPath for `custom-certs` secret to match what the entrypoint on the docker image expects

dn3tguru requested to merge (removed):patch-1 into main

The entrypoint script (on both ubuntu and alpine images) which is in charge of calling update-ca-certificates to install the custom CA certificate, by default expects it to be mounted at /etc/gitlab-runner/certs/ca.crt (unless overridden by setting CA_CERTIFICATES_PATH directly).

This results in the gitlab-runner chart not working out of the box in an environment with a private certificate authority. This PR changes the mount path of the custom-certs secret to what is expected by default.

See: https://gitlab.com/gitlab-org/gitlab-runner/blob/master/dockerfiles/alpine/entrypoint#L4 and https://gitlab.com/gitlab-org/gitlab-runner/blob/master/dockerfiles/ubuntu/entrypoint#L4

Tested with the latest docker image: gitlab/gitlab-runner:alpine-v11.8.0

Merge request reports