RunnerSet: Automatic-recovery from registration timeout and deregistration on pod termination (#652)

Ref #629
Ref #613
Ref #612
This commit is contained in:
Yusuke Kuoka
2021-06-24 20:39:37 +09:00
committed by GitHub
parent 98da4c2adb
commit acb906164b
6 changed files with 465 additions and 8 deletions

12
main.go
View File

@@ -215,6 +215,18 @@ func main() {
CacheDuration: gitHubAPICacheDuration,
}
runnerPodReconciler := &controllers.RunnerPodReconciler{
Client: mgr.GetClient(),
Log: log.WithName("runnerpod"),
Scheme: mgr.GetScheme(),
GitHubClient: ghClient,
}
if err = runnerPodReconciler.SetupWithManager(mgr); err != nil {
log.Error(err, "unable to create controller", "controller", "RunnerPod")
os.Exit(1)
}
if err = horizontalRunnerAutoscaler.SetupWithManager(mgr); err != nil {
log.Error(err, "unable to create controller", "controller", "HorizontalRunnerAutoscaler")
os.Exit(1)