Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HighestUserDefinablePriority is the highest priority for user defined priority classes. Priority values larger than 1 billion are reserved for Kubernetes system use. HighestUserDefinablePriority = 1000000000 // SystemCriticalPriority is the beginning of the range of priority values for critical system components. SystemCriticalPriority = 2 * HighestUserDefinablePriority )
Variables ¶
View Source
var SystemPriorityClasses = map[string]int32{ "system-cluster-critical": SystemCriticalPriority, "system-node-critical": SystemCriticalPriority + 1000, }
SystemPriorityClasses defines special priority classes which are used by system critical pods that should not be preempted by workload pods.
Functions ¶
Types ¶
type PriorityPlugin ¶ added in v1.9.0
PriorityPlugin is an implementation of admission.Interface.
func NewPlugin ¶
func NewPlugin() *PriorityPlugin
NewPlugin creates a new priority admission plugin.
func (*PriorityPlugin) Admit ¶ added in v1.9.0
func (p *PriorityPlugin) Admit(a admission.Attributes) error
Admit checks Pods and PriorityClasses and admits or rejects them. It also resolves the priority of pods based on their PriorityClass.
func (*PriorityPlugin) SetInternalKubeClientSet ¶ added in v1.9.0
func (p *PriorityPlugin) SetInternalKubeClientSet(client internalclientset.Interface)
SetInternalKubeClientSet implements the WantsInternalKubeClientSet interface.
func (*PriorityPlugin) SetInternalKubeInformerFactory ¶ added in v1.9.0
func (p *PriorityPlugin) SetInternalKubeInformerFactory(f informers.SharedInformerFactory)
SetInternalKubeInformerFactory implements the WantsInternalKubeInformerFactory interface.
func (*PriorityPlugin) Validate ¶ added in v1.9.0
func (p *PriorityPlugin) Validate() error
Validate implements the Validator interface.
Click to show internal directories.
Click to hide internal directories.