Skip to content

Ability to add extra containers

What does this MR do?

Adds the ability to have additional containers in the gitlab runner pod

Why was this MR needed?

We want to use docker+machine executor in Amazon EKS, but it does not support IRSA. One solution is to have a sidecar container with a simple script that gets credentials using assume-role-with-web-identity and updates ~/.aws/credentials on a recurring basis (this file would be shared between the 2 containers)

What's the best way to test this MR?

For example, add in you values file :

extraContainers:
- name: my-sidecar
  image: my-image
  imagePullPolicy: IfNotPresent
  command: ["my-command"]
  args: ["my-arg"]

Run Helm template, and verify that the container "my-sidecar" is present

Merge request reports