Documentation ¶
Index ¶
Constants ¶
View Source
const PluginName = "DefaultTolerationSeconds"
PluginName indicates name of admission plugin.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶ added in v1.9.0
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, o admission.ObjectInterfaces) (err error)
Admit makes an admission decision based on the request attributes
Click to show internal directories.
Click to hide internal directories.