kubernetes: k8s.io/kubernetes/plugin/pkg/admission/priority Index | Files

package priority

import "k8s.io/kubernetes/plugin/pkg/admission/priority"


Package Files



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

func Register Uses

func Register(plugins *admission.Plugins)

Register registers a plugin

type Plugin Uses

type Plugin struct {
    // contains filtered or unexported fields

Plugin is an implementation of admission.Interface.

func NewPlugin Uses

func NewPlugin() *Plugin

NewPlugin creates a new priority admission plugin.

func (*Plugin) Admit Uses

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 Uses

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

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

func (*Plugin) SetExternalKubeClientSet Uses

func (p *Plugin) SetExternalKubeClientSet(client kubernetes.Interface)

SetExternalKubeClientSet implements the WantsInternalKubeClientSet interface.

func (*Plugin) SetExternalKubeInformerFactory Uses

func (p *Plugin) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)

SetExternalKubeInformerFactory implements the WantsInternalKubeInformerFactory interface.

func (*Plugin) Validate Uses

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 Uses

func (p *Plugin) ValidateInitialization() error

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.