Skip to content

Generate system id when installing GitLab Runner through the Helm Chart

Romuald Atchadé requested to merge generate-system-id into main

What does this MR do?

GitLab Kubernetes integration - runner receives a new ID every time cluster is restarted leading to clutter in list of runners. That ends up with a long list of the same GitLab Runner in the Runner List UI.

With this MR, the system_id/.runner_system_id is automatically generated using .Release.Name and .Release.Namespace.

The methodology used for the generated is explained in the following thread #455 (comment 1384860830)

Why was this MR needed?

Avoid the long list of the same GitLab Runner in the UI

What's the best way to test this MR?

  • Use the MR branch
  • Run the command
helm install gitlab-runner . -f PATH_TO_YOUR_VALUES_YAML
  • ssh to the GitLab Runner Manager Pod
  • cat the content of the .runner_system_id file (and notes it)
  • Uninstall GitLab Runner
helm delete gitlab-runner
  • Restart from the beginning. Both system_id (content of the .runner_system_id) should be the same

What are the relevant issue numbers?

close #455

Merge request reports