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.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 3 hours ago –
Tools for package owners.