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) SetExternalKubeClientSet(client kubernetes.Interface)
- 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 indicates name of admission plugin.
PluginName = "Priority"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
Plugin is an implementation of admission.Interface.
func (*Plugin) Admit ¶
func (p *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
Admit checks Pods and admits or rejects them. It also resolves the priority of pods based on their PriorityClass. Note that pod validation mechanism prevents update of a pod priority.
func (*Plugin) InspectFeatureGates ¶
func (p *Plugin) InspectFeatureGates(featureGates featuregate.FeatureGate)
InspectFeatureGates allows setting bools without taking a dep on a global variable
func (*Plugin) SetExternalKubeClientSet ¶
func (p *Plugin) SetExternalKubeClientSet(client kubernetes.Interface)
SetExternalKubeClientSet implements the WantsInternalKubeClientSet interface.
func (*Plugin) SetExternalKubeInformerFactory ¶
func (p *Plugin) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
SetExternalKubeInformerFactory implements the WantsInternalKubeInformerFactory interface.
func (*Plugin) Validate ¶
func (p *Plugin) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
Validate checks PriorityClasses and admits or rejects them.
Click to show internal directories.
Click to hide internal directories.