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 13 package(s)

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

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/clientset_generated/internalclientset/fake