actions-runner-controller/controllers
Yusuke Kuoka 4053ab3e11
Fix label support for TotalNumberOfQueuedAndInProgressWorkflowRuns metric (#1390)
In #1373 we made two mistakes:

- We mistakenly checked if all the runner labels are included in the job labels and only after that it marked the target as eligible for scale. It should definitely be the opposite!
- We mistakenly checked for the existence of `self-hosted` labe l in the job. [Although it should be a good practice to explicitly say `runs-on: ["self-hosted", "custom-label"]`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-labels-for-runner-selection), that's not a requirement so we should code accordingly.

The consequence of those two mistakes was that, for example, jobs with `self-hosted` + `custom` labels didn't result in scaling runner with `self-hosted` + `custom` + `custom2`. This should fix that.

Ref #1056
Ref #1373
2022-04-27 16:24:21 +01:00
..
metrics Clean up import list (#645) 2021-06-22 17:55:06 +09:00
testdata test: Add tests with self-hosted label for #953 (#1030) 2022-01-07 08:50:26 +09:00
autoscaling.go Fix label support for TotalNumberOfQueuedAndInProgressWorkflowRuns metric (#1390) 2022-04-27 16:24:21 +01:00
autoscaling_test.go Fix label support for TotalNumberOfQueuedAndInProgressWorkflowRuns metric (#1390) 2022-04-27 16:24:21 +01:00
constants.go Prevent static runners from terminating due to unregister timeout 2022-03-13 07:26:36 +00:00
horizontal_runner_autoscaler_webhook.go Remove the default `githubEvent: {}` requiring a event to be defined (#1379) 2022-04-24 13:37:26 +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 Remove the default `githubEvent: {}` requiring a event to be defined (#1379) 2022-04-24 13:37:26 +09:00
horizontalrunnerautoscaler_controller.go feat: Add label support to TotalNumberOfQueuedAndInProgressWorkflowRuns metric (#1373) 2022-04-24 14:41:34 +09:00
integration_test.go Remove the default `githubEvent: {}` requiring a event to be defined (#1379) 2022-04-24 13:37:26 +09:00
new_runner_pod_test.go chore: Add unit test for RunnerReconciler.newPod (#1382) 2022-04-25 09:59:21 +09:00
pod_runner_token_injector.go refactor: use const envvars (#1251) 2022-03-27 12:14:56 +01:00
runner_controller.go Fix runner pod dnsConfig (#1227) 2022-04-20 10:55:20 +09:00
runner_graceful_stop.go Fix externally deleted runner pod to not block unregistration process 2022-03-13 12:15:49 +00:00
runner_pod_controller.go Use container name to detect runner container in Pod 2022-03-23 12:39:58 +01:00
runner_pod_owner.go Fix runners to not terminate before unregistration when scaling down 2022-03-13 13:09:46 +00:00
runnerdeployment_controller.go Let runnerdeployment controller log runnerreplicaset creation 2022-03-13 12:25:53 +00:00
runnerdeployment_controller_test.go Clean up import list (#645) 2021-06-22 17:55:06 +09:00
runnerreplicaset_controller.go fix: Let RunnerDeployment scale RunnerReplicaSet to zero before terminating it 2022-03-13 12:18:22 +00:00
runnerreplicaset_controller_test.go refactor: Make RunnerReplicaSet and Runner backed by the same logic that backs RunnerSet 2022-03-06 05:53:26 +00:00
runnerset_controller.go refactor: Make RunnerReplicaSet and Runner backed by the same logic that backs RunnerSet 2022-03-06 05:53:26 +00: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