{"modulePath":"github.com/stackpointcloud/kubernetes","version":"v1.4.0-alpha.2","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package podgc\n\nPackage podgc contains a very simple pod \"garbage collector\" implementation, PodGCController, 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 PodGCController prioritizes pods to delete by sorting by creation timestamp and deleting the oldest objects first. The PodGCController will not delete non-terminated pods.\n\n## Types\n\n```go\ntype PodGCController struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(kubeClient clientset.Interface, resyncPeriod controller.ResyncPeriodFunc, threshold int) *PodGCController\n```\n\n```go\nfunc (gcc *PodGCController) Run(stop \u003c-chan struct{})\n```\n\n","path":"github.com/stackpointcloud/kubernetes/pkg/controller/podgc","name":"podgc","synopsis":"Package podgc contains a very simple pod \"garbage collector\" implementation, PodGCController, that runs in the controller manager.","isRedistributable":true}
