Skip to content

v0.6.0 scale-set breaks the ability to have 2 runner install with the same name #2905

@ba-work

Description

@ba-work

Checks

Controller Version

v0.6.0

Helm Chart Version

v0.6.0

CertManager Version

No response

Deployment Method

Helm

cert-manager installation

no cert manager

Checks

  • This isn't a question or user support case (For Q&A and community support, go to Discussions. It might also be a good idea to contract with any of contributors and maintainers if your business is so critical and therefore you need priority support
  • I've read releasenotes before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes
  • My actions-runner-controller version (v0.x.y) does support the feature
  • I've already upgraded ARC (including the CRDs, see charts/actions-runner-controller/docs/UPGRADING.md for details) to the latest and it didn't fix the issue
  • I've migrated to the workflow job webhook event (if you using webhook driven scaling)

Resource Definitions

I use to install the runners with flux like this:

apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: repo-1
  namespace: arc-runners
spec:
  values:
    runnerScaleSetName: ci-cluster # <-- note that this has the same value in repo-2
    ...
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: repo-2
  namespace: arc-runners
spec:
  values:
    runnerScaleSetName: ci-cluster # <-- note that this has the same value in repo-1
    ...

To Reproduce

helm install repo-1 \
    oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set \
    --set runnerScaleSetName=ci-cluster
helm install repo-2 \
    oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set \
    --set runnerScaleSetName=ci-cluster

Describe the bug

I use to install the runners with flux like the included HelmReleases suggest; they could have the same value for runnerScaleSetName and workflows in different repos could both target ci-cluster. With v0.6.0 (this commit: 837a1cb) the resources overlap and it doesn't work with no ability to override/workaround.

Describe the expected behavior

The runner groups/scalesets are created with the same name in each repo, like they were in v0.5.0

Whole Controller Logs

this isn't relevant, the bug is related to helm templating

Whole Runner Pod Logs

this isn't relevant, the bug is related to helm templating

Additional Context

had to revert to 0.5.0 since this change breaking all workflows in repo-2 that expect to be able to target ci-cluster

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions