controller

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatedByAnnotation

type CreatedByAnnotation struct {
	Kind       string
	ApiVersion string
	Reference  struct {
		Kind            string
		Namespace       string
		Name            string
		Uid             string
		ApiVersion      string
		ResourceVersion string
	}
}

CreatedByAnnotation type used to match pods created by job

type PodController

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

PodController watches the kubernetes api for changes to Pods and delete completed Pods without specific annotation

func NewPodController

func NewPodController(kclient *kubernetes.Clientset, namespace string, dryRun bool, opts map[string]float64) *PodController

NewPodController creates a new NewPodController

func (*PodController) Process added in v0.5.0

func (c *PodController) Process(obj interface{})

func (*PodController) Run

func (c *PodController) Run(stopCh <-chan struct{})

Run starts the process for listening for pod changes and acting upon those changes.

Jump to

Keyboard shortcuts

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