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"
)

func Register Uses

func Register(plugins *admission.Plugins)

Register registers a plugin

type Plugin Uses

type Plugin struct {
    *admission.Handler
}

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 6 packages (graph) and is imported by 22 packages. Updated 2019-11-09. Refresh now. Tools for package owners.