gc

package
v1.2.0-alpha.5....-c8f1019 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCController

type GCController struct {
	// contains filtered or unexported fields
}

func New

func New(kubeClient client.Interface, resyncPeriod controller.ResyncPeriodFunc, threshold int) *GCController

func (*GCController) Run

func (gcc *GCController) Run(stop <-chan struct{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL