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

Add list verb over secrets for the controller, required when deleting ephemeralrunners #3514

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gcaracuel
Copy link

Controller requires list permission over secrets in the watched namespace when deleting ephemeralrunner resources.
When not granted ephemeralrunner resources cannot be deleted by the controller printing next error:

2024-05-09T09:54:33Z    ERROR    Reconciler error    {"controller": "ephemeral-runner-controller", "controllerGroup": "actions.github.com", "controllerKind": "EphemeralRunner", "EphemeralRunner": {"name":"<POD_NAME>","namespace":"<NAMESPACE_NAME>"}, "namespace": "<NAMESPACE_NAME>", "name": "<POD_NAME>", "reconcileID": "44cd28a5-ecd0-4334-9c9c-4decde0a39d8", "error": "failed to list runner-linked secrets: secrets is forbidden: User \"system:serviceaccount:<NAMESPACE_NAME>:arc-gha-rs-controller\" cannot list resource \"secrets\" in API group \"\" in the namespace \"<NAMESPACE_NAME>\""}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant