Skip to content

ARC not working with an organization whose name ends in hyphen #3663

@and-es

Description

@and-es

Checks

Controller Version

0.9.3

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

Follow Quickstart guide(https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/quickstart-for-actions-runner-controller) with an organization named "camphor-".
githubConfigUrl is "https://github.com/camphor-".

Describe the bug

Failed to create a runner scale set.
The controller log says:

"error": "AutoscalingRunnerSet.actions.github.com \"arc-runner-set\" is invalid: metadata.labels: Invalid value: \"camphor-\": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue',  or 'my_value',  or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')"}

Describe the expected behavior

Create a runner scale set successfully.

Additional Context

Nothing. I just follow the quickstart guide.

Controller Logs

https://gist.github.com/and-es/1456bf907dd2ddc1716881ce6a2e1224

Runner Pod Logs

No runner pods

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