defaulttolerationseconds

package
v1.9.12-beta.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register added in v1.7.0

func Register(plugins *admission.Plugins)

Register registers a plugin

Types

type Plugin added in v1.9.0

type Plugin struct {
	*admission.Handler
}

Plugin contains the client used by the admission controller It will add default tolerations for every pod that tolerate taints `notReady:NoExecute` and `unreachable:NoExecute`, with tolerationSeconds of 300s. If the pod already specifies a toleration for taint `notReady:NoExecute` or `unreachable:NoExecute`, the plugin won't touch it.

func NewDefaultTolerationSeconds

func NewDefaultTolerationSeconds() *Plugin

NewDefaultTolerationSeconds creates a new instance of the DefaultTolerationSeconds admission controller

func (*Plugin) Admit added in v1.9.0

func (p *Plugin) Admit(attributes admission.Attributes) (err error)

Admit makes an admission decision based on the request attributes

Jump to

Keyboard shortcuts

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