[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:
parent
c990fd6d02
commit
7454a6489e
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue