actions-runner-controller/controllers
Johannes Nicolai 2d7fbbfb68
Handle offline runners gracefully (#341)
* if a runner pod starts up with an invalid token, it will go in an 
infinite retry loop, appearing as RUNNING from the outside
* normally, this error situation is detected because no corresponding 
runner objects exists in GitHub and the pod will get removed after 
registration timeout
* if the GitHub runner object already existed before - e.g. because a 
finalizer was not properly run as part of a partial Kubernetes crash, 
the runner will always stay in a running mode, even updating the 
registration token will not kill the problematic pod
* introducing RunnerOffline exception that can be handled in runner 
controller and replicaset controller
* as runners are offline when a pod is completed and marked for restart, 
only do additional restart checks if no restart was already decided, 
making code a bit cleaner and saving GitHub API calls after each job 
completion
2021-02-22 10:08:04 +09:00
..
testdata Fix nil pointer error on received check_run event (#331) 2021-02-18 20:22:36 +09:00
autoscaling.go `scale{Up,Down}Adjustment` to add/remove constant number of replicas on scaling (#315) 2021-02-16 17:16:26 +09:00
autoscaling_test.go Fix TotalNumberOfQueuedAndInProgressWorkflowRuns to work with a lot of remaining `completed` jobs (#316) 2021-02-16 18:55:55 +09:00
horizontal_runner_autoscaler_webhook.go Fix index key to find HRA in GitHub webhook handler 2021-02-20 21:25:23 +09:00
horizontal_runner_autoscaler_webhook_on_check_run.go feat: HorizontalRunnerAutoscaler Webhook server (#282) 2021-02-07 17:37:27 +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 Fix nil pointer error on received check_run event (#331) 2021-02-18 20:22:36 +09:00
horizontalrunnerautoscaler_controller.go Add integration test for autoscaling on check_run webhook event 2021-02-19 10:33:04 +09:00
integration_test.go Fix webhook payload in integration test 2021-02-20 21:08:23 +09:00
runner_controller.go Handle offline runners gracefully (#341) 2021-02-22 10:08:04 +09:00
runnerdeployment_controller.go Add integration test for autoscaling on check_run webhook event 2021-02-19 10:33:04 +09:00
runnerdeployment_controller_test.go feat: Common runner labels configurable per controller (#327) 2021-02-18 20:19:08 +09:00
runnerreplicaset_controller.go Handle offline runners gracefully (#341) 2021-02-22 10:08:04 +09:00
runnerreplicaset_controller_test.go Github pkg: Bump github package to version 33 (#222) 2020-12-06 10:01:47 +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