Merge pull request #82365 from jkaniuk/pod-gc

Pod GC controller - use node lister
This commit is contained in:
Kubernetes Prow Robot
2019-10-24 03:13:06 -07:00
committed by GitHub
8 changed files with 328 additions and 116 deletions

View File

@@ -346,6 +346,7 @@ func startPodGCController(ctx ControllerContext) (http.Handler, bool, error) {
go podgc.NewPodGC(
ctx.ClientBuilder.ClientOrDie("pod-garbage-collector"),
ctx.InformerFactory.Core().V1().Pods(),
ctx.InformerFactory.Core().V1().Nodes(),
int(ctx.ComponentConfig.PodGCController.TerminatedPodGCThreshold),
).Run(ctx.Stop)
return nil, true, nil