Skip to content

Providing multiple imagePullSecrets for gha-runner-scale-set creates them as comma seperated #4159

Open
@Cyb3r-Jak3

Description

@Cyb3r-Jak3

Checks

Controller Version

0.12.1

Deployment Method

Helm

Checks

  • This isn't a question or user support case (For Q&A and community support, go to Discussions).
  • I've read the Changelog before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes

To Reproduce

1. Create a `values.yaml` file with

template:
  spec:
    imagePullSecrets:
      - image-pull-secret-1
      - image-pull-secret-2

2. Apply the values with `helm install -f values.yaml gha-runner-scale-set`
3. You will see an error of `nable to retrieve some image pull secrets (image-pull-secret-1,image-pull-secret-2); attempting to pull the image may not succeed.` and the listener image will fail to pull.

If you look the custom resource for the listener (autoscalinglisteners), you will see that under `spec.imagePullSecrets` it will be set to `- name: image-pull-secret-1,image-pull-secret-2`. Edit it to be

- name: image-pull-secret-1
- name: image-pull-secret-2

and the listener will work correctly.

Describe the bug

When providing multiple imagePullSecrets for the gha-runner-scale-set helm chart, they get combined in a comma separated string rather than going to new lines.

Describe the expected behavior

The created custom resource should be

- name: image-pull-secret-1
- name: image-pull-secret-2

Additional Context

Example values.yaml file

template:
  spec:
    imagePullSecrets:
      - name: image-pull-secret-1
      - name: image-pull-secret-2

Controller Logs

https://gist.github.com/Cyb3r-Jak3/432fde866878fcfe1184e286db85efca

Runner Pod Logs

https://gist.github.com/Cyb3r-Jak3/4ac922be841970106bb3fd23769dcc81

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggha-runner-scale-setRelated to the gha-runner-scale-set modeneeds triageRequires review from the maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions