actions-runner-controller/controllers
clement-loiselet-talend 0c34196d87
fix(#951): add exception for self-hosted label in webhook search (#953)
The webhook "workflowJob" pass the labels the job needs to the controller, who in turns search for them in its RunnerDeployment / RunnerSet. The current implementation ignore the search for `self-hosted` if this is the only label, however if multiple labels are found the `self-hosted` label must be declared explicitely or the RD / RS will not be selected for the autoscaling.

This PR fixes the behavior by ignoring this label, and add documentation on this webhook for the other labels that will still require an explicit declaration (OS and architecture). 

The exception should be temporary, ideally the labels implicitely created (self-hosted, OS, architecture) should be searchable alongside the explicitly declared labels.

code tested, work with `["self-hosted"]` and `["self-hosted","anotherLabel"]`

Fixes #951
2021-12-19 10:55:23 +09:00
..
metrics Clean up import list (#645) 2021-06-22 17:55:06 +09:00
testdata Fix bug related to label matching. (#852) 2021-09-30 11:02:59 +09:00
autoscaling.go Fixing capitalization and a typo (#838) 2021-09-26 14:34:55 +09:00
autoscaling_test.go Add HRA support for RunnerSet (#647) 2021-06-23 20:25:03 +09:00
horizontal_runner_autoscaler_webhook.go fix(#951): add exception for self-hosted label in webhook search (#953) 2021-12-19 10:55:23 +09:00
horizontal_runner_autoscaler_webhook_on_check_run.go Update go-github from v37 -> v39 (#925) 2021-12-11 21:43:40 +09:00
horizontal_runner_autoscaler_webhook_on_pull_request.go Update go-github from v37 -> v39 (#925) 2021-12-11 21:43:40 +09:00
horizontal_runner_autoscaler_webhook_on_push.go Update go-github from v37 -> v39 (#925) 2021-12-11 21:43:40 +09:00
horizontal_runner_autoscaler_webhook_test.go fix(deps): update module sigs.k8s.io/controller-runtime to v0.11.0 (#740) 2021-12-17 09:06:55 +09:00
horizontalrunnerautoscaler_controller.go fix(deps): update module sigs.k8s.io/controller-runtime to v0.11.0 (#740) 2021-12-17 09:06:55 +09:00
horizontalrunnerautoscaler_controller_test.go Clean up import list (#645) 2021-06-22 17:55:06 +09:00
integration_test.go Update go-github from v37 -> v39 (#925) 2021-12-11 21:43:40 +09:00
pod_runner_token_injector.go RunnerSet: Automatic-recovery from registration timeout and deregistration on pod termination (#652) 2021-06-24 20:39:37 +09:00
runner_controller.go fix(deps): update module sigs.k8s.io/controller-runtime to v0.11.0 (#740) 2021-12-17 09:06:55 +09:00
runner_pod_controller.go fix(deps): update module sigs.k8s.io/controller-runtime to v0.11.0 (#740) 2021-12-17 09:06:55 +09:00
runnerdeployment_controller.go Clean up import list (#645) 2021-06-22 17:55:06 +09:00
runnerdeployment_controller_test.go Clean up import list (#645) 2021-06-22 17:55:06 +09:00
runnerreplicaset_controller.go fix(deps): update module sigs.k8s.io/controller-runtime to v0.11.0 (#740) 2021-12-17 09:06:55 +09:00
runnerreplicaset_controller_test.go Clean up import list (#645) 2021-06-22 17:55:06 +09:00
runnerset_controller.go fix(deps): update module sigs.k8s.io/controller-runtime to v0.11.0 (#740) 2021-12-17 09:06:55 +09:00
schedule.go Experimental support for ScheduledOverrides (#515) 2021-05-03 23:31:17 +09:00
schedule_test.go Experimental support for ScheduledOverrides (#515) 2021-05-03 23:31:17 +09:00
suite_test.go Clean up import list (#645) 2021-06-22 17:55:06 +09:00
utils.go feat: EKS IAM Roles for Service Accounts for Runner Pods (#226) 2020-12-08 17:56:06 +09:00
utils_test.go feat: EKS IAM Roles for Service Accounts for Runner Pods (#226) 2020-12-08 17:56:06 +09:00