top

Package gc contains a very simple pod "garbage collector" implementation, GCController, that runs in the controller manager. If the number of pods in terminated phases (right now either Failed or Succeeded) surpasses a configurable threshold, the controller will delete pods in terminated state until the system reaches the allowed threshold again. The GCController prioritizes pods to delete by sorting by creation timestamp and deleting the oldest objects first. The GCController will not delete non-terminated pods.

Imports 12 package(s)

  1. k8s.io/kubernetes/pkg/labels
  2. k8s.io/kubernetes/pkg/util
  3. github.com/golang/glog
  4. k8s.io/kubernetes/pkg/controller
  5. k8s.io/kubernetes/pkg/controller/framework
  6. k8s.io/kubernetes/pkg/api
  7. k8s.io/kubernetes/pkg/client/unversioned
  8. k8s.io/kubernetes/pkg/runtime
  9. k8s.io/kubernetes/pkg/watch
  10. k8s.io/kubernetes/pkg/client/record
  11. k8s.io/kubernetes/pkg/client/cache
  12. k8s.io/kubernetes/pkg/fields

Test imports 3 package(s)

  1. k8s.io/kubernetes/pkg/util/sets
  2. k8s.io/kubernetes/pkg/api/unversioned
  3. k8s.io/kubernetes/pkg/client/unversioned/testclient