actions / actions-runner-controller

Kubernetes controller for GitHub Actions self-hosted runners
Apache License 2.0
4.59k stars 1.09k forks source link

The custom image of the runner is not used in the templates #3733

Open GruemL opened 1 week ago

GruemL commented 1 week ago

Checks

Controller Version

0.9.3

Deployment Method

Helm

Checks

To Reproduce

1. install helmchart for gha-runner-scale-set controller and gha-runner-scale set both in version 0.9.3
2. use the custom image path like its described in the [docs](https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/deploying-runner-scale-sets-with-actions-runner-controller#configuring-the-runner-image), but not provided in the [linked values.yaml](https://github.com/actions/actions-runner-controller/blob/master/charts/gha-runner-scale-set/values.yaml) and the [templates](https://github.com/actions/actions-runner-controller/tree/master/charts/gha-runner-scale-set/templates) of the helm chart.

we use it like this:

minRunners: 1
runnerGroup: "qs"
runnerScaleSetName: "ha-test"
template:
  spec:
    containers:
      - name: runner
        image: "IMAGE_PATH/NAME"
        imagePullPolicy: ifNotPresent
        command: ["/home/runner/run.sh"]
    imagePullSecrets:
      - name: SECRETNAME

There are no events or hints in the controller log. The runner pod does not start.

I know there is a discussion for this topic : https://github.com/actions/actions-runner-controller/discussions/2835

But it doesnt help for my problem.

Thank you in advance.

Describe the bug

The Bug is, that the customImage and ImagePullSecret Part from the docs is never used in the values.yaml or in one of the templates.

Or is the part for the listener pod that inherits the imagepullpolicy from the controller pod also valid for the runner pod?

Describe the expected behavior

I can use my custom image and imagepullsecret and it is used in values.yaml and templates like described in the docs.

Additional Context

values.yaml:

minRunners: 1
runnerGroup: "qs"
runnerScaleSetName: "ha-test"
template:
  spec:
    containers:
      - name: runner
        image: "IMAGE_PATH/NAME"
        imagePullPolicy: ifNotPresent
        command: ["/home/runner/run.sh"]
    imagePullSecrets:
      - name: SECRETNAME

Controller Logs

There are no errors in the controller pod logs

Runner Pod Logs

no runner pod is created - no events
github-actions[bot] commented 1 week ago

Hello! Thank you for filing an issue.

The maintainers will triage your issue shortly.

In the meantime, please take a look at the troubleshooting guide for bug reports.

If this is a feature request, please review our contribution guidelines.

diegoara96 commented 1 week ago

The secret with your private registry login is in the same namespace as the helm deployment (arc-runners by default)?

GruemL commented 6 days ago

yes, it is in the same namespace. But there are no events that is even used.