actions-runner-controller/charts/actions-runner-controller/templates
Felipe Galindo Sanchez d0d316252e
Option to consider runner group visibility on scale based on webhook (#1062)
This will work on GHES but GitHub Enterprise Cloud due to excessive GitHub API calls required.
More work is needed, like adding a cache layer to the GitHub client, to make it usable on GitHub Enterprise Cloud.

Fixes additional cases from https://github.com/actions-runner-controller/actions-runner-controller/pull/1012

If GitHub auth is provided in the webhooks controller then runner groups with custom visibility are supported. Otherwise, all runner groups will be assumed to be visible to all repositories

`getScaleUpTargetWithFunction()` will check if there is an HRA available with the following flow:

1. Search for **repository** HRAs - if so it ends here
2. Get available HRAs in k8s
3. Compute visible runner groups
  a. If GitHub auth is provided - get all the runner groups that are visible to the repository of the incoming webhook using GitHub API calls.  
  b. If GitHub auth is not provided - assume all runner groups are visible to all repositories
4. Search for **default organization** runners (a.k.a runners from organization's visible default runner group) with matching labels
5. Search for **default enterprise** runners (a.k.a runners from enterprise's visible default runner group) with matching labels
6. Search for **custom organization runner groups** with matching labels
7. Search for **custom enterprise runner groups** with matching labels

Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
2022-02-16 19:08:56 +09:00
..
NOTES.txt Update helm chart (#343) 2021-02-26 09:26:51 +09:00
_github_webhook_server_helpers.tpl Add podDistruptionBudget resource for controller pods (#805) 2021-11-15 19:07:23 +00:00
_helpers.tpl Add podDistruptionBudget resource for controller pods (#805) 2021-11-15 19:07:23 +00:00
auth_proxy_role.yaml chart: Add service monitor and remove kube_rbac_proxy leftovers (#527) 2021-05-26 12:10:25 +01:00
auth_proxy_role_binding.yaml chart: Add service monitor and remove kube_rbac_proxy leftovers (#527) 2021-05-26 12:10:25 +01:00
certificate.yaml Support installing without cert-manager (#834) 2021-12-08 21:58:46 +00:00
ci-secret.yaml feat: Added option for secret annotation (#824) 2021-10-17 22:18:35 +01:00
controller.metrics.service.yaml Create optional serviceAnnotations value in helm chart (#867) 2021-10-17 22:37:43 +01:00
controller.metrics.serviceMonitor.yaml chart: Add additional labels to serviceMonitor (#670) 2021-07-03 15:14:59 +09:00
controller.pdb.yaml Add podDistruptionBudget resource for controller pods (#805) 2021-11-15 19:07:23 +00:00
deployment.yaml feat: support routing GitHub API calls to custom proxy API (#1017) 2021-12-23 09:24:10 +09:00
githubwebhook.deployment.yaml Option to consider runner group visibility on scale based on webhook (#1062) 2022-02-16 19:08:56 +09:00
githubwebhook.ingress.yaml modify chart ingress (#1098) 2022-02-08 12:56:30 +09:00
githubwebhook.pdb.yaml Add podDistruptionBudget resource for controller pods (#805) 2021-11-15 19:07:23 +00:00
githubwebhook.role.yaml feat: Workflow job based ephemeral runner scaling (#721) 2021-08-11 09:52:04 +09:00
githubwebhook.role_binding.yaml Add cluster role binding for github-webhook-server 2021-02-18 16:49:24 +09:00
githubwebhook.secrets.yaml Fix various bugs in helm chart (#364) 2021-03-03 09:21:20 +09:00
githubwebhook.service.yaml Add annotations to githubWebhookServer Service in Helm Chart (#665) 2021-06-30 20:42:21 +09:00
githubwebhook.serviceMonitor.yaml Use https connection when metrics enabled for githubwebhook server (#685) 2021-07-16 10:19:38 +09:00
githubwebhook.serviceaccount.yaml feat: HorizontalRunnerAutoscaler Webhook server (#282) 2021-02-07 17:37:27 +09:00
leader_election_role.yaml Ensure the chart is passing acceptance tests 2020-11-14 21:58:16 +09:00
leader_election_role_binding.yaml Ensure the chart is passing acceptance tests 2020-11-14 21:58:16 +09:00
manager_role.yaml feat: RunnerSet backed by StatefulSet (#629) 2021-06-22 17:10:09 +09:00
manager_role_binding.yaml Ensure the chart is passing acceptance tests 2020-11-14 21:58:16 +09:00
manager_secrets.yaml feat: support routing GitHub API calls to custom proxy API (#1017) 2021-12-23 09:24:10 +09:00
runner_editor_role.yaml Ensure the chart is passing acceptance tests 2020-11-14 21:58:16 +09:00
runner_viewer_role.yaml Ensure the chart is passing acceptance tests 2020-11-14 21:58:16 +09:00
serviceaccount.yaml Ensure the chart is passing acceptance tests 2020-11-14 21:58:16 +09:00
webhook_configs.yaml Support installing without cert-manager (#834) 2021-12-08 21:58:46 +00:00
webhook_service.yaml Create optional serviceAnnotations value in helm chart (#867) 2021-10-17 22:37:43 +01:00