Unverified Commit 7bcdbc5a authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #74446 from yanghaichao12/comm0223

Fix typos
parents f330633a b475cdf7
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment