Gitlab Runner is not unregistering when using secret
Hi, I am using a secret as a runner registration token like:
runners:
image: ubuntu:18.04
secret: runner-token
...
The issue is when I uninstall helm, the runner is persistent for GitLab and I have to remove it manually.
I think the issue is here, the runner is unregistered only if there is a value with the registration token, but I use secrets instead.
{{- if and .Values.unregisterRunners .Values.runnerRegistrationToken }}
lifecycle:
preStop:
exec:
command: ["/entrypoint", "unregister", "--all-runners"]
Is it possible to add the missing condition too?
Edited by Filip Niko