Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller delete completed pod if the key(namespace/name) are equal to the pattern
func NewController ¶
func NewController(clientset kubernetes.Interface, informer informers.PodInformer, patterns []string, ttl int, job bool, dryRun bool) *Controller
NewController create the controller which delete the completed pod match to patterns.
func (*Controller) Run ¶
func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error
Run wait for syncronizing cache and run worker as many as threadiness.
Click to show internal directories.
Click to hide internal directories.