use /usr/local/bin/tini if image name contains ubi
What does this MR do?
Implement automatic switching of the runner init executable in the command based on the image name.
Why was this MR needed?
It is currently not possible to use the Helm chart to run the UBI images provided by GitLab, as they use tini instead of dumb-init
as the init system.
What's the best way to test this MR?
Set the image to an image without ubi
in its name, helm template...
set the image name to include ubi
, helm template...
without ubi the result should have the container command starting with /usr/bin/dumb-init
while with the image including ubi
should result in /usr/local/bin/tini
What are the relevant issue numbers?
- gitlab-org/ci-cd/gitlab-runner-ubi-images#14 (closed)
- #412
- #374 (though instead of a full override, this is just a conditional selction)