kubernetesk8s.io/kubernetes/plugin/pkg/admission/nodetaint Index | Files

package nodetaint

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

Index

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

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.

Source Files

admission.go

Version
v1.16.0-alpha.0
Published
May 14, 2019
Platform
js/wasm
Imports
7 packages
Last checked
3 minutes ago

Tools for package owners.