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

package nodetaint

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

Index

Package Files

admission.go

Constants

const (
    // PluginName is the name of the plugin.
    PluginName = "TaintNodesByCondition"
    // TaintNodeNotReady is the not-ready label as specified in the API.
    TaintNodeNotReady = "node.kubernetes.io/not-ready"
)

func Register Uses

func Register(plugins *admission.Plugins)

Register registers a plugin

type Plugin Uses

type Plugin struct {
    *admission.Handler
    // contains filtered or unexported fields
}

Plugin holds state for and implements the admission plugin.

func NewPlugin Uses

func NewPlugin() *Plugin

NewPlugin creates a new NodeTaint admission plugin. This plugin identifies requests from nodes

func (*Plugin) Admit Uses

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

Admit is the main function that checks node identity and adds taints as needed.

Package nodetaint imports 8 packages (graph) and is imported by 20 packages. Updated 2019-09-06. Refresh now. Tools for package owners.