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
fix(chart): add namespace selector to webhooks when in singleNamespace mode #1237
fix(chart): add namespace selector to webhooks when in singleNamespace mode #1237
Conversation
Note that this happens only when you deploy one instance of ARC per namespace 😃 |
btw did we miss something there? Do you recommend another way to handle many organizations without using a PAT? |
@Meroje You aren't missing anything! I just wanted to point out that you're affected only when you deploy one ARC per namespace, which isn't quite common (yet). |
@Meroje could you provide your configuration, I'm struggling to get this fix to work, have you tested it works in your environment? |
yes everything has been running fine since we implemented this change. How we're doing this is by having an empty (no templates) chart declaring yours as dependency (to test this PR we unpacked the dependency and applied the patch)
then we create a release of this chart per organization in our GHES with corresponding values (which means we have X controllers in a single namespace each watching a different namespace)
# deploy.sh
helm upgrade \
"${orgName}" \
"charts/actions-runner-controller" \
--create-namespace \
--namespace action-runner-system \
--install \
-f "charts/actions-runner-controller/values.yaml" \
-f "charts/actions-runner-controller/${orgName}.values.yaml" \
--set-file actions-runner-controller.authSecret.github_app_private_key=github-app.pem \
--set-string actions-runner-controller.scope.watchNamespace=${orgName} \
--wait we then have another chart responsible to deploy our RunnerDeployments in the watched namespaces. |
LGTM my environment was messed up and needed rebuilding |
Just had this issue, and upgrading to 0.17.2 have fixed it 👍 |
As we found out in #1223 there is an issue starting from ARC 0.22.0 where the admission webhooks are now used for pods controlled by RunnerDeployments. The absence of namespace selector results in denials for pod creation from webhooks for one organization being called for another where they don't have the authentication to request runner tokens.
Fixes #1223