package nodetaint
import "k8s.io/kubernetes/plugin/pkg/admission/nodetaint"
Index ¶
Constants ¶
const ( // PluginName is the name of the plugin. PluginName = "TaintNodesByCondition" )
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(ctx context.Context, 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.24.15
- Published
- Jun 14, 2023
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 1 minute ago –
Tools for package owners.