Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt role name to prevent namespace collision #2617

Merged
merged 2 commits into from
Jun 20, 2023
Merged

Adapt role name to prevent namespace collision #2617

merged 2 commits into from
Jun 20, 2023

Conversation

timmjd
Copy link
Contributor

@timmjd timmjd commented May 23, 2023

The current deployment is not working for a single namespace deployment of the gha-runner-scale-set-controller.

This is due to the manager_single_namespace_controller_role and the manager_single_namespace_watch_role would both result in the same role name: ({{ include "gha-runner-scale-set-controller.managerSingleNamespaceRoleName" . }}) - leading to the error: roles.rbac.authorization.k8s.io "xxx-gha-runner-scale-set-controller-manager-single-namespace-role" already exists

This fix does rename the watcher role. By this, a single namespace deployment should be possible.

@timmjd timmjd marked this pull request as ready for review May 23, 2023 13:18
@nikola-jokic nikola-jokic added the gha-runner-scale-set Related to the gha-runner-scale-set mode label May 23, 2023
@nikola-jokic nikola-jokic self-assigned this May 25, 2023
@Link- Link- added the attention Requires attention label May 31, 2023
Copy link
Member

@nikola-jokic nikola-jokic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Link-
Copy link
Collaborator

Link- commented Jun 15, 2023

Fixes #2668

@nikola-jokic nikola-jokic merged commit cf18cb3 into actions:master Jun 20, 2023
11 checks passed
@Link- Link- added this to the gha-runner-scale-set-0.5.0 milestone Jul 28, 2023
@Link- Link- mentioned this pull request Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
attention Requires attention gha-runner-scale-set Related to the gha-runner-scale-set mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants