Merge pull request #104055 from thinpark/drain

[k8s.io/kubectl/pkg/drain/drain]: minor typo fixup
This commit is contained in:
Kubernetes Prow Robot
2021-08-04 17:46:37 -07:00
committed by GitHub

View File

@@ -144,7 +144,7 @@ func (d *Helper) DeletePod(pod corev1.Pod) error {
return d.Client.CoreV1().Pods(pod.Namespace).Delete(d.getContext(), pod.Name, d.makeDeleteOptions())
}
// EvictPod will evict the give pod, or return an error if it couldn't
// EvictPod will evict the given pod, or return an error if it couldn't
func (d *Helper) EvictPod(pod corev1.Pod, evictionGroupVersion schema.GroupVersion) error {
if d.DryRunStrategy == cmdutil.DryRunServer {
if err := d.DryRunVerifier.HasSupport(pod.GroupVersionKind()); err != nil {