Documentation ¶
Index ¶
- Constants
- func Register(plugins *admission.Plugins)
- type Plugin
- func (p *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
- func (p *Plugin) InspectFeatureGates(featureGates featuregate.FeatureGate)
- func (p *Plugin) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
- func (p *Plugin) ValidateInitialization() error
Constants ¶
View Source
const PluginName = "NodeRestriction"
PluginName is a string with the name of the plugin
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
Plugin holds state for and implements the admission plugin.
func NewPlugin ¶
func NewPlugin(nodeIdentifier nodeidentifier.NodeIdentifier) *Plugin
NewPlugin creates a new NodeRestriction 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 checks the admission policy and triggers corresponding actions
func (*Plugin) InspectFeatureGates ¶
func (p *Plugin) InspectFeatureGates(featureGates featuregate.FeatureGate)
InspectFeatureGates allows setting bools without taking a dep on a global variable
func (*Plugin) SetExternalKubeInformerFactory ¶
func (p *Plugin) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
SetExternalKubeInformerFactory registers an informer factory into Plugin
Click to show internal directories.
Click to hide internal directories.