nodetaint

package
v1.14.3-k3s.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 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

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