Fix typos

change SupportsPreemption

change comment again
pull/564/head
yanghaichao12 2019-02-23 03:02:11 -05:00
parent d6de0454e9
commit b475cdf7fc
3 changed files with 5 additions and 5 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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 {