defaulttolerationseconds

package
v1.13.4-k3s.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "DefaultTolerationSeconds"

PluginName indicates name of admission plugin.

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin

Types

type Plugin

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

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