kubernetesk8s.io/kubernetes/pkg/scheduler/framework/plugins/schedulinggates Index | Files

package schedulinggates

import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/schedulinggates"

Index

Constants

const Name = names.SchedulingGates

Name of the plugin used in the plugin registry and configurations.

Functions

func New

New initializes a new plugin and returns it.

Types

type SchedulingGates

type SchedulingGates struct {
	EnablePodSchedulingReadiness bool
}

SchedulingGates checks if a Pod carries .spec.schedulingGates.

func (*SchedulingGates) EventsToRegister

func (pl *SchedulingGates) EventsToRegister() []framework.ClusterEventWithHint

EventsToRegister returns nil here to indicate that schedulingGates plugin is not interested in any event but its own update.

func (*SchedulingGates) Name

func (pl *SchedulingGates) Name() string

func (*SchedulingGates) PreEnqueue

func (pl *SchedulingGates) PreEnqueue(ctx context.Context, p *v1.Pod) *framework.Status

Source Files

scheduling_gates.go

Version
v1.29.7
Published
Jul 16, 2024
Platform
js/wasm
Imports
7 packages
Last checked
24 seconds ago

Tools for package owners.