v1

package
v1.17.15 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package v1 contains scheduler API objects.

Index

Constants

View Source
const (
	// MinExtenderPriority defines the min priority value for extender.
	MinExtenderPriority int64 = 0

	// MaxExtenderPriority defines the max priority value for extender.
	MaxExtenderPriority int64 = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtenderArgs

type ExtenderArgs struct {
	// Pod being scheduled
	Pod *v1.Pod
	// List of candidate nodes where the pod can be scheduled; to be populated
	// only if ExtenderConfig.NodeCacheCapable == false
	Nodes *v1.NodeList
	// List of candidate node names where the pod can be scheduled; to be
	// populated only if ExtenderConfig.NodeCacheCapable == true
	NodeNames *[]string
}

ExtenderArgs represents the arguments needed by the extender to filter/prioritize nodes for a pod.

func (*ExtenderArgs) DeepCopy

func (in *ExtenderArgs) DeepCopy() *ExtenderArgs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtenderArgs.

func (*ExtenderArgs) DeepCopyInto

func (in *ExtenderArgs) DeepCopyInto(out *ExtenderArgs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExtenderBindingArgs

type ExtenderBindingArgs struct {
	// PodName is the name of the pod being bound
	PodName string
	// PodNamespace is the namespace of the pod being bound
	PodNamespace string
	// PodUID is the UID of the pod being bound
	PodUID types.UID
	// Node selected by the scheduler
	Node string
}

ExtenderBindingArgs represents the arguments to an extender for binding a pod to a node.

func (*ExtenderBindingArgs) DeepCopy

func (in *ExtenderBindingArgs) DeepCopy() *ExtenderBindingArgs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtenderBindingArgs.

func (*ExtenderBindingArgs) DeepCopyInto

func (in *ExtenderBindingArgs) DeepCopyInto(out *ExtenderBindingArgs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExtenderBindingResult

type ExtenderBindingResult struct {
	// Error message indicating failure
	Error string
}

ExtenderBindingResult represents the result of binding of a pod to a node from an extender.

func (*ExtenderBindingResult) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtenderBindingResult.

func (*ExtenderBindingResult) DeepCopyInto

func (in *ExtenderBindingResult) DeepCopyInto(out *ExtenderBindingResult)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExtenderFilterResult

type ExtenderFilterResult struct {
	// Filtered set of nodes where the pod can be scheduled; to be populated
	// only if ExtenderConfig.NodeCacheCapable == false
	Nodes *v1.NodeList
	// Filtered set of nodes where the pod can be scheduled; to be populated
	// only if ExtenderConfig.NodeCacheCapable == true
	NodeNames *[]string
	// Filtered out nodes where the pod can't be scheduled and the failure messages
	FailedNodes FailedNodesMap
	// Error message indicating failure
	Error string
}

ExtenderFilterResult represents the results of a filter call to an extender

func (*ExtenderFilterResult) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtenderFilterResult.

func (*ExtenderFilterResult) DeepCopyInto

func (in *ExtenderFilterResult) DeepCopyInto(out *ExtenderFilterResult)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExtenderPreemptionArgs

type ExtenderPreemptionArgs struct {
	// Pod being scheduled
	Pod *v1.Pod
	// Victims map generated by scheduler preemption phase
	// Only set NodeNameToMetaVictims if ExtenderConfig.NodeCacheCapable == true. Otherwise, only set NodeNameToVictims.
	NodeNameToVictims     map[string]*Victims
	NodeNameToMetaVictims map[string]*MetaVictims
}

ExtenderPreemptionArgs represents the arguments needed by the extender to preempt pods on nodes.

func (*ExtenderPreemptionArgs) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtenderPreemptionArgs.

func (*ExtenderPreemptionArgs) DeepCopyInto

func (in *ExtenderPreemptionArgs) DeepCopyInto(out *ExtenderPreemptionArgs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExtenderPreemptionResult

type ExtenderPreemptionResult struct {
	NodeNameToMetaVictims map[string]*MetaVictims
}

ExtenderPreemptionResult represents the result returned by preemption phase of extender.

func (*ExtenderPreemptionResult) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtenderPreemptionResult.

func (*ExtenderPreemptionResult) DeepCopyInto

func (in *ExtenderPreemptionResult) DeepCopyInto(out *ExtenderPreemptionResult)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FailedNodesMap

type FailedNodesMap map[string]string

FailedNodesMap represents the filtered out nodes, with node names and failure messages

func (FailedNodesMap) DeepCopy

func (in FailedNodesMap) DeepCopy() FailedNodesMap

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FailedNodesMap.

func (FailedNodesMap) DeepCopyInto

func (in FailedNodesMap) DeepCopyInto(out *FailedNodesMap)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HostPriority

type HostPriority struct {
	// Name of the host
	Host string
	// Score associated with the host
	Score int64
}

HostPriority represents the priority of scheduling to a particular host, higher priority is better.

func (*HostPriority) DeepCopy

func (in *HostPriority) DeepCopy() *HostPriority

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPriority.

func (*HostPriority) DeepCopyInto

func (in *HostPriority) DeepCopyInto(out *HostPriority)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HostPriorityList

type HostPriorityList []HostPriority

HostPriorityList declares a []HostPriority type.

func (HostPriorityList) DeepCopy

func (in HostPriorityList) DeepCopy() HostPriorityList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPriorityList.

func (HostPriorityList) DeepCopyInto

func (in HostPriorityList) DeepCopyInto(out *HostPriorityList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MetaPod

type MetaPod struct {
	UID string
}

MetaPod represent identifier for a v1.Pod

func (*MetaPod) DeepCopy

func (in *MetaPod) DeepCopy() *MetaPod

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetaPod.

func (*MetaPod) DeepCopyInto

func (in *MetaPod) DeepCopyInto(out *MetaPod)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MetaVictims

type MetaVictims struct {
	Pods             []*MetaPod
	NumPDBViolations int64
}

MetaVictims represents:

pods:  a group of pods expected to be preempted.
  Only Pod identifiers will be sent and user are expect to get v1.Pod in their own way.
numPDBViolations: the count of violations of PodDisruptionBudget

func (*MetaVictims) DeepCopy

func (in *MetaVictims) DeepCopy() *MetaVictims

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetaVictims.

func (*MetaVictims) DeepCopyInto

func (in *MetaVictims) DeepCopyInto(out *MetaVictims)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Victims

type Victims struct {
	Pods             []*v1.Pod
	NumPDBViolations int64
}

Victims represents:

pods:  a group of pods expected to be preempted.
numPDBViolations: the count of violations of PodDisruptionBudget

func (*Victims) DeepCopy

func (in *Victims) DeepCopy() *Victims

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Victims.

func (*Victims) DeepCopyInto

func (in *Victims) DeepCopyInto(out *Victims)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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