Documentation
¶
Index ¶
- Constants
- func Register(plugins *admission.Plugins)
- type Plugin
- func (p *Plugin) InspectFeatureGates(featureGates featuregate.FeatureGate)
- func (p *Plugin) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
- func (p *Plugin) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
- func (p *Plugin) ValidateInitialization() error
Constants ¶
View Source
const (
// PluginName is the name of this admission controller plugin.
PluginName = "NodeDeclaredFeatureValidator"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
Plugin is an admission controller that validates pod updates against node capabilities.
func (*Plugin) InspectFeatureGates ¶
func (p *Plugin) InspectFeatureGates(featureGates featuregate.FeatureGate)
SetFeatures sets the feature gates for the plugin.
func (*Plugin) SetExternalKubeInformerFactory ¶
func (p *Plugin) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
SetExternalKubeInformerFactory sets the informer factory for the plugin.
func (*Plugin) Validate ¶
func (p *Plugin) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
Validate is the core of the admission controller logic.
func (*Plugin) ValidateInitialization ¶
ValidateInitialization ensures that the plugin is properly initialized.
Click to show internal directories.
Click to hide internal directories.