Skip to content

Add ability to use custom template config path

What does this MR do?

Adds the ability to chose a different path to get the toml config from

Why was this MR needed?

We currently have hardcoded tokens and secrets in the [[runners]] environment section of the toml config file. We want to store secrets in AWS SSM Parameter Store. We did not found any way to template the config file with theses secrets at runtime, so a viable idea would be to use the templating functionality of external secrets operator to inject the secrets in the config file from SSM Parameter Store, into the pod. The only edit needed in the chart is to be able to use a different config path used in the gitlab-runner register command, as the current folder used is already a mounted volume.

What's the best way to test this MR?

Unset runners.config, mount a secret as a volume by editing the volumes and volumeMounts keys in the values. Set the relevant path for runners.configPath

What are the relevant issue numbers?

Merge request reports