{"modulePath":"github.com/stackpointcloud/kubernetes","version":"v1.3.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package gc\n\nPackage 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.\n\n## Types\n\n```go\ntype GCController struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(kubeClient clientset.Interface, resyncPeriod controller.ResyncPeriodFunc, threshold int) *GCController\n```\n\n```go\nfunc (gcc *GCController) Run(stop \u003c-chan struct{})\n```\n\n","path":"github.com/stackpointcloud/kubernetes/pkg/controller/gc","name":"gc","synopsis":"Package gc contains a very simple pod \"garbage collector\" implementation, GCController, that runs in the controller manager.","isRedistributable":true}
