controller

package
v0.0.0-...-03cda9e Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: MIT Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

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