nodetaint

package
v1.13.4-beta.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

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

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
	// contains filtered or unexported fields
}

Plugin holds state for and implements the admission plugin.

func NewPlugin

func NewPlugin() *Plugin

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

func (*Plugin) Admit

func (p *Plugin) Admit(a admission.Attributes) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL