actions-runner-controller/controllers
Yusuke Kuoka b5194fd75a
Enhance RunnerSet to optionally retain PVs accross restarts (#1340)
* Enhance RunnerSet to optionally retain PVs accross restarts

This is our initial attempt to bring back the ability to retain PVs across runner pod restarts when using RunnerSet.
The implementation is composed of two new controllers, `runnerpersistentvolumeclaim-controller` and `runnerpersistentvolume-controller`.
It all starts from our existing `runnerset-controller`. The controller now tries to mark any PVCs created by StatefulSets created for the RunnerSet.
Once the controller terminated statefulsets, their corresponding PVCs are clean up by `runnerpersistentvolumeclaim-controller`, then PVs are unbound from their corresponding PVCs by `runnerpersistentvolume-controller` so that they can be reused by future PVCs createf for future StatefulSets that shares the same same StorageClass.

Ref #1286

* Update E2E test suite to cover runner, docker, and go caching with RunnerSet + PVs

Ref #1286
2022-05-16 09:26:48 +09: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 fix: force restartPolicy "Never" to prevent runner pods from stucking in Terminating when the container disappeared (#1395) 2022-05-14 09:07:17 +01:00
persistent_volume_claim_controller.go Enhance RunnerSet to optionally retain PVs accross restarts (#1340) 2022-05-16 09:26:48 +09:00
persistent_volume_controller.go Enhance RunnerSet to optionally retain PVs accross restarts (#1340) 2022-05-16 09:26:48 +09:00
pod_runner_token_injector.go fix: force restartPolicy "Never" to prevent runner pods from stucking in Terminating when the container disappeared (#1395) 2022-05-14 09:07:17 +01:00
runner_controller.go fix: force restartPolicy "Never" to prevent runner pods from stucking in Terminating when the container disappeared (#1395) 2022-05-14 09:07:17 +01:00
runner_graceful_stop.go fix: runner pods managed by RunnerSet to not stuck in Terminating (#1420) 2022-05-12 09:34:27 +01:00
runner_pod.go fix: force restartPolicy "Never" to prevent runner pods from stucking in Terminating when the container disappeared (#1395) 2022-05-14 09:07:17 +01: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 Enhance RunnerSet to optionally retain PVs accross restarts (#1340) 2022-05-16 09:26:48 +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
sync_volumes.go Enhance RunnerSet to optionally retain PVs accross restarts (#1340) 2022-05-16 09:26:48 +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