Documentation
¶
Overview ¶
Package v1 contains scheduler API objects.
Index ¶
Constants ¶
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 ¶
func (in *ExtenderBindingResult) DeepCopy() *ExtenderBindingResult
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 ¶
func (in *ExtenderFilterResult) DeepCopy() *ExtenderFilterResult
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 ¶
func (in *ExtenderPreemptionArgs) DeepCopy() *ExtenderPreemptionArgs
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 ¶
func (in *ExtenderPreemptionResult) DeepCopy() *ExtenderPreemptionResult
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 ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetaPod.
func (*MetaPod) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetaVictims ¶
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 ¶
Victims represents:
pods: a group of pods expected to be preempted. numPDBViolations: the count of violations of PodDisruptionBudget
func (*Victims) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Victims.
func (*Victims) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.