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 ¶
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.
Click to show internal directories.
Click to hide internal directories.