actions-runner-controller/controllers
Yusuke Kuoka 3f23501b8e
Reduce "No runner matching the specified labels was found" errors while runner replacement (#392)
We occasionally encountered those errors while the underlying RunnerReplicaSet is being recreated/replaced on RunnerDeployment.Spec.Template update. It turned out to be due to that the RunnerDeployment controller was waiting for the runner pod becomes `Running`, intead of the new replacement runner to have registered to GitHub. This fixes that, by trying to Runner.Status.Phase to `Running` only after the runner in the runner pod appears to be registered.

A side-effect of this change is that runner controller would call more "ListRunners" GitHub Actions API. I've reviewed and improved the runner controller code and Runner CRD to make make the number of calls minimum. In most cases, ListRunners should be called only twice for each runner creation.
2021-03-16 10:52:30 +09:00
..
testdata Fix panic on webhook for user-owned repository (#344) 2021-02-23 08:05:25 +09:00
autoscaling.go Disable metrics-based autoscaling by default when scaleUpTriggers are enabled (#391) 2021-03-14 11:03:00 +09:00
autoscaling_test.go Manage runner with label (#355) 2021-03-05 10:15:39 +09:00
horizontal_runner_autoscaler_webhook.go Make webhook-based autoscaler github event logs more operator-friendly (#384) 2021-03-10 09:40:44 +09:00
horizontal_runner_autoscaler_webhook_on_check_run.go Add CheckRun.Names scale-up trigger configuration (#390) 2021-03-14 10:21:42 +09:00
horizontal_runner_autoscaler_webhook_on_pull_request.go feat: HorizontalRunnerAutoscaler Webhook server (#282) 2021-02-07 17:37:27 +09:00
horizontal_runner_autoscaler_webhook_on_push.go feat: HorizontalRunnerAutoscaler Webhook server (#282) 2021-02-07 17:37:27 +09:00
horizontal_runner_autoscaler_webhook_test.go handle GET requests in webhook hra (#378) 2021-03-09 08:46:27 +09:00
horizontalrunnerautoscaler_controller.go Use patch instead of update to alleviate HRA conflict on webhook (#358) 2021-02-26 10:17:09 +09:00
horizontalrunnerautoscaler_controller_test.go Fix HRA expired cache entries not cleaned up (#357) 2021-02-26 09:54:24 +09:00
integration_test.go Disable metrics-based autoscaling by default when scaleUpTriggers are enabled (#391) 2021-03-14 11:03:00 +09:00
runner_controller.go Reduce "No runner matching the specified labels was found" errors while runner replacement (#392) 2021-03-16 10:52:30 +09:00
runnerdeployment_controller.go Reduce "No runner matching the specified labels was found" errors while runner replacement (#392) 2021-03-16 10:52:30 +09:00
runnerdeployment_controller_test.go Manage runner with label (#355) 2021-03-05 10:15:39 +09:00
runnerreplicaset_controller.go Manage runner with label (#355) 2021-03-05 10:15:39 +09:00
runnerreplicaset_controller_test.go Manage runner with label (#355) 2021-03-05 10:15:39 +09:00
suite_test.go feat: HorizontalRunnerAutoscaler Webhook server (#282) 2021-02-07 17:37:27 +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