Skip to content

Draft: Support list of hosts and IPs that will be injected into the build pod's hosts file

What does this MR do?

Support configuration for list of hosts and IPs that will be injected into the build pod's hosts file, introduced with gitlab-org/gitlab-runner!1570 (closed)

Why was this MR needed?

Provide the capability to configure the hostAlias for the build instances started on a kubernetes cluster using the --kubernetes-extra-hosts option of the kubernetes executor.

What's the best way to test this MR?

Try to start a job using k8s runners with extra_hosts configured:

  • the extra hosts should be part of the build pod hostAlias
  • the extra hosts should be injected in /etc/hosts file in the build contianer.

What are the relevant issue numbers?

Add support for gitlab-org/gitlab-runner#2818 (closed)

Edited by Horatiu Eugen Vlad

Merge request reports