Merge pull request #27151 from caesarxuchao/gc-e2e

Automatic merge from submit-queue

[garbage collector] add e2e test

This PR also includes some changes to plumb controller-manager's `--enable_garbage_collector` from the environment variable.

The e2e test will not be run by the core suite because it's marked `[Feature:GarbageCollector]`.

The corresponding jenkins job configuration PR is https://github.com/kubernetes/test-infra/pull/132.
This commit is contained in:
k8s-merge-robot
2016-07-14 19:55:52 -07:00
committed by GitHub
10 changed files with 223 additions and 12 deletions

View File

@@ -684,6 +684,7 @@ func (gc *GarbageCollector) processItem(item *node) error {
}
func (gc *GarbageCollector) Run(workers int, stopCh <-chan struct{}) {
glog.V(0).Infof("GarbageCollector is starting running!")
for _, monitor := range gc.monitors {
go monitor.controller.Run(stopCh)
}