Chart docs for runner registration token secret are incorrect
Summary
CHART VERSION: 1.7.3
The values.yaml has a section here for configuring a gitlab runner registration token.
There's a reference to the docs here which explain how to create the runner secret.
If you follow the docs, the runner will not work. The docs show to create a secret with a single key named runner-registration-token
, however the gitlab runner chart has an init container with a mount from a projected volume and it expects two keys to exist in the secret - runner-registration-token
and runner-token
.
- name: init-runner-secrets
projected:
sources:
...
- secret:
name: {{ include "gitlab-runner.secret" . }}
items:
- key: runner-registration-token
path: runner-registration-token
- key: runner-token
path: runner-token
If the secret doesn't contain the runner-token
key, the init container will fail as kubernetes won't be able to mount the volume.
Steps to reproduce
Deploy using the helm chart and create the runner token secret as per the docs.
Current behavior
The gitlab runner init container fails
Expected behavior
The gitlab runner works
Versions
- Chart: 1.7.3
- Platform:
- Cloud: EKS
- Kubernetes: (
kubectl version
)- Client: 1.13.3
- Server: 1.12.6