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) 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 ¶ added in v1.17.0
Plugin is an implementation of admission.Interface.
func (*Plugin) Admit ¶ added in v1.17.0
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) SetExternalKubeClientSet ¶ added in v1.17.0
func (p *Plugin) SetExternalKubeClientSet(client kubernetes.Interface)
SetExternalKubeClientSet implements the WantsInternalKubeClientSet interface.
func (*Plugin) SetExternalKubeInformerFactory ¶ added in v1.17.0
func (p *Plugin) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
SetExternalKubeInformerFactory implements the WantsInternalKubeInformerFactory interface.
func (*Plugin) Validate ¶ added in v1.17.0
func (p *Plugin) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
Validate checks PriorityClasses and admits or rejects them.
func (*Plugin) ValidateInitialization ¶ added in v1.17.0
ValidateInitialization implements the InitializationValidator interface.
Click to show internal directories.
Click to hide internal directories.