priority

package
v1.24.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2021 License: Apache-2.0 Imports: 16 Imported by: 30

Documentation

Index

Constants

View Source
const (
	// PluginName indicates name of admission plugin.
	PluginName = "Priority"
)

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin

Types

type Plugin added in v1.17.0

type Plugin struct {
	*admission.Handler
	// contains filtered or unexported fields
}

Plugin is an implementation of admission.Interface.

func NewPlugin

func NewPlugin() *Plugin

NewPlugin creates a new priority admission plugin.

func (*Plugin) Admit added in v1.17.0

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 added in v1.17.0

func (p *Plugin) InspectFeatureGates(featureGates featuregate.FeatureGate)

InspectFeatureGates allows setting bools without taking a dep on a global variable

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

Validate checks PriorityClasses and admits or rejects them.

func (*Plugin) ValidateInitialization added in v1.17.0

func (p *Plugin) ValidateInitialization() error

ValidateInitialization implements the InitializationValidator interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL