Description
Unlike RunnerDeployments, RunnerSets cannot be deployed in the same Cluster even while being in a different Namespace.
I was previously able to successfully deploy RunnerDeployments to the same Clusters all with their own controllers and had no issues with them having shared values (different helm release names - see 782).. Now, I'm deploying RunnerSet and am seeing an issue where the API call is being shared from a separate namespace, even with watchNamespace
set to the namespace of the controller.
Currently running helm chart version 0.13.2 and actions-runner-controller version 0.20.2
To reproduce, create a namespace, deploy a controller with a unique release name, deploy a RunnerSet to that controller.
Create another namespace, deploy a controller with a unique release name AND a unique GitHub App installation ID, OR (for my case) a PAT for GitHub Enterprise Cloud/GitHub Enterprise Server (whichever you want, in my case I have two RunnerSets for GHES for two separate organizations using the same PAT, when I try to deploy to our organization in GHEC and use a new PAT there for that instance, I am seeing the error:
create Pod xx-ghec-runnerset-0 in StatefulSet xx-ghec-runnerset failed error: admission webhook "mutate-runner-pod.webhook.actions.summerwind.dev" denied the request: failed to create registration token: POST https://github.xxx.com/api/v3/orgs/xxx/actions/runners/registration-token: 404 Not Found []
^ the API call above should be pointed to github.com, but instead is pointed to my GHES URL, when in my values.yml
I did not specify any GitHub Enterprise Server URL
:
env:
GITHUB_ENTERPRISE_URL: ""
I expect to be able to deploy RunnerSet the same way we can deploy RunnerDeployments to different Namespaces within the same Cluster.
I'm moving to RunnerSets for now as it has the ability to accept dnsPolicy: Default
which solves timeout errors we were seeing when deploying to our Kubernetes cluster. Would like to go back to RunnerDeployments
if the dnsPolicy behavior becomes available there as we want to utilize autoscaling.
If this functionality will not be supported for RunnerSets
and you guys recommend to only use RunnerDeployments
please let me know.
Thanks!