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

Test imports 3 package(s)

  1. k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/fake
  2. k8s.io/kubernetes/pkg/util/sets
  3. k8s.io/kubernetes/pkg/api/unversioned