import "k8s.io/kubernetes/plugin/pkg/admission/priority"
const ( // PluginName indicates name of admission plugin. PluginName = "Priority" )
Register registers a plugin
Plugin is an implementation of admission.Interface.
NewPlugin creates a new priority admission plugin.
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 (p *Plugin) InspectFeatureGates(featureGates featuregate.FeatureGate)
InspectFeatureGates allows setting bools without taking a dep on a global variable
func (p *Plugin) SetExternalKubeClientSet(client kubernetes.Interface)
SetExternalKubeClientSet implements the WantsInternalKubeClientSet interface.
func (p *Plugin) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
SetExternalKubeInformerFactory implements the WantsInternalKubeInformerFactory interface.
func (p *Plugin) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
Validate checks PriorityClasses and admits or rejects them.
ValidateInitialization implements the InitializationValidator interface.
Package priority imports 16 packages (graph) and is imported by 62 packages. Updated 2020-07-04. Refresh now. Tools for package owners.