kubernetes: k8s.io/kubernetes/plugin/pkg/admission/defaulttolerationseconds Index | Files

package defaulttolerationseconds

import "k8s.io/kubernetes/plugin/pkg/admission/defaulttolerationseconds"


Package Files



const PluginName = "DefaultTolerationSeconds"

PluginName indicates name of admission plugin.

func Register Uses

func Register(plugins *admission.Plugins)

Register registers a plugin

type Plugin Uses

type Plugin struct {

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 Uses

func NewDefaultTolerationSeconds() *Plugin

NewDefaultTolerationSeconds creates a new instance of the DefaultTolerationSeconds admission controller

func (*Plugin) Admit Uses

func (p *Plugin) Admit(ctx context.Context, attributes admission.Attributes, o admission.ObjectInterfaces) (err error)

Admit makes an admission decision based on the request attributes

Package defaulttolerationseconds imports 8 packages (graph) and is imported by 64 packages. Updated 2019-11-07. Refresh now. Tools for package owners.