mirror of
https://github.com/kubernetes/kubectl.git
synced 2026-05-28 04:35:50 -04:00
apply code review
Kubernetes-commit: 0060a62b6fdbfb8a7f4c1902b3bc58d31140f105
This commit is contained in:
parent
484c6b6f54
commit
d337fe1f2a
1 changed files with 3 additions and 0 deletions
|
|
@ -390,6 +390,9 @@ func (d *Helper) deletePods(pods []corev1.Pod, getPodFn func(namespace, name str
|
|||
if err != nil && !apierrors.IsNotFound(err) {
|
||||
return err
|
||||
}
|
||||
if d.DryRunStrategy == cmdutil.DryRunServer {
|
||||
continue
|
||||
}
|
||||
if d.OnPodDeletionOrEvictionStarted != nil {
|
||||
d.OnPodDeletionOrEvictionStarted(&pod, false)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue