kubernetes: k8s.io/kubernetes/pkg/scheduler/apis/extender/v1 Index | Files

package v1

import "k8s.io/kubernetes/pkg/scheduler/apis/extender/v1"

Package v1 contains scheduler API objects.

Index

Package Files

doc.go types.go zz_generated.deepcopy.go

Constants

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

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

type ExtenderArgs Uses

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 Uses

func (in *ExtenderArgs) DeepCopy() *ExtenderArgs

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

func (*ExtenderArgs) DeepCopyInto Uses

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 Uses

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 Uses

func (in *ExtenderBindingArgs) DeepCopy() *ExtenderBindingArgs

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

func (*ExtenderBindingArgs) DeepCopyInto Uses

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 Uses

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 Uses

func (in *ExtenderBindingResult) DeepCopy() *ExtenderBindingResult

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

func (*ExtenderBindingResult) DeepCopyInto Uses

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 Uses

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 Uses

func (in *ExtenderFilterResult) DeepCopy() *ExtenderFilterResult

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

func (*ExtenderFilterResult) DeepCopyInto Uses

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 Uses

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 Uses

func (in *ExtenderPreemptionArgs) DeepCopy() *ExtenderPreemptionArgs

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

func (*ExtenderPreemptionArgs) DeepCopyInto Uses

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 Uses

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

ExtenderPreemptionResult represents the result returned by preemption phase of extender.

func (*ExtenderPreemptionResult) DeepCopy Uses

func (in *ExtenderPreemptionResult) DeepCopy() *ExtenderPreemptionResult

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

func (*ExtenderPreemptionResult) DeepCopyInto Uses

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 Uses

type FailedNodesMap map[string]string

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

func (FailedNodesMap) DeepCopy Uses

func (in FailedNodesMap) DeepCopy() FailedNodesMap

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

func (FailedNodesMap) DeepCopyInto Uses

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 Uses

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 Uses

func (in *HostPriority) DeepCopy() *HostPriority

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

func (*HostPriority) DeepCopyInto Uses

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 Uses

type HostPriorityList []HostPriority

HostPriorityList declares a []HostPriority type.

func (HostPriorityList) DeepCopy Uses

func (in HostPriorityList) DeepCopy() HostPriorityList

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

func (HostPriorityList) DeepCopyInto Uses

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 Uses

type MetaPod struct {
    UID string
}

MetaPod represent identifier for a v1.Pod

func (*MetaPod) DeepCopy Uses

func (in *MetaPod) DeepCopy() *MetaPod

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

func (*MetaPod) DeepCopyInto Uses

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 Uses

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 Uses

func (in *MetaVictims) DeepCopy() *MetaVictims

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

func (*MetaVictims) DeepCopyInto Uses

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 Uses

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 Uses

func (in *Victims) DeepCopy() *Victims

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

func (*Victims) DeepCopyInto Uses

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

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

Package v1 imports 2 packages (graph) and is imported by 15 packages. Updated 2019-10-10. Refresh now. Tools for package owners.