[k8s.io/kubectl/pkg/drain/drain]: minor typo fixup

Signed-off-by: Zhou Peng <p@ctriple.cn>

Kubernetes-commit: 7e2d6301bf95893ea74116871d2c2f6392217105
This commit is contained in:
Zhou Peng 2021-08-01 07:07:31 +08:00 committed by Kubernetes Publisher
parent c990fd6d02
commit 7454a6489e
1 changed files with 1 additions and 1 deletions

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 {