mirror of https://github.com/k3s-io/k3s
parent
d6de0454e9
commit
b475cdf7fc
|
@ -114,7 +114,7 @@ func NewHTTPExtender(config *schedulerapi.ExtenderConfig) (algorithm.SchedulerEx
|
|||
}, nil
|
||||
}
|
||||
|
||||
// Name returns extenderURL to identifies the extender.
|
||||
// Name returns extenderURL to identify the extender.
|
||||
func (h *HTTPExtender) Name() string {
|
||||
return h.extenderURL
|
||||
}
|
||||
|
@ -125,8 +125,8 @@ func (h *HTTPExtender) IsIgnorable() bool {
|
|||
return h.ignorable
|
||||
}
|
||||
|
||||
// SupportsPreemption returns if a extender support preemption.
|
||||
// A extender should have preempt verb defined and enabled its own node cache.
|
||||
// SupportsPreemption returns true if an extender supports preemption.
|
||||
// An extender should have preempt verb defined and enabled its own node cache.
|
||||
func (h *HTTPExtender) SupportsPreemption() bool {
|
||||
return len(h.preemptVerb) > 0
|
||||
}
|
||||
|
|
|
@ -706,7 +706,7 @@ func MakeDefaultErrorFunc(client clientset.Interface, backoff *util.PodBackoff,
|
|||
}
|
||||
}
|
||||
|
||||
// nodeEnumerator allows a cache.Poller to enumerate items in an v1.NodeList
|
||||
// nodeEnumerator allows a cache.Poller to enumerate items in a v1.NodeList
|
||||
type nodeEnumerator struct {
|
||||
*v1.NodeList
|
||||
}
|
||||
|
|
|
@ -879,7 +879,7 @@ func TestForgetPod(t *testing.T) {
|
|||
}
|
||||
|
||||
// getResourceRequest returns the resource request of all containers in Pods;
|
||||
// excuding initContainers.
|
||||
// excluding initContainers.
|
||||
func getResourceRequest(pod *v1.Pod) v1.ResourceList {
|
||||
result := &schedulernodeinfo.Resource{}
|
||||
for _, container := range pod.Spec.Containers {
|
||||
|
|
Loading…
Reference in New Issue