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 ¶
Register registers a plugin
Types ¶
type Plugin ¶
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, o admission.ObjectInterfaces) error
Admit is the main function that checks node identity and adds taints as needed.
Source Files ¶
admission.go
- Version
- v1.15.2-beta.0
- Published
- Jul 18, 2019
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 19 minutes ago –
Tools for package owners.