Skip to content

Fix liveness check for runners with multiple tags

Jeremy Huntwork requested to merge jhuntwork/gitlab-runner:main into main

What does this MR do?

Fix liveness check for runners with multiple tags

If multiple tags are assigned to a runner, then the command to extract a 'name' from config.toml will produce multiple results which are then invalid as arguments to gitlab-runner verify -n

Simply take the first one as a best-effort check.

Why was this MR needed?

Without this check, the main runner pods will continuously fail their liveness checks.

Merge request reports

Loading