1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 05:14:13 +01:00

Merge pull request #287 from ingvagabund/evict-pod-mention-dry-run-if-set

Mention pod eviction is in dry mode when set
This commit is contained in:
Kubernetes Prow Robot
2020-05-20 11:44:19 -07:00
committed by GitHub

View File

@@ -96,7 +96,11 @@ func (pe *PodEvictor) EvictPod(ctx context.Context, pod *v1.Pod, node *v1.Node)
}
pe.nodepodCount[node]++
klog.V(1).Infof("Evicted pod: %#v in namespace %#v", pod.Name, pod.Namespace)
if pe.dryRun {
klog.V(1).Infof("Evicted pod in dry run mode: %#v in namespace %#v", pod.Name, pod.Namespace)
} else {
klog.V(1).Infof("Evicted pod: %#v in namespace %#v", pod.Name, pod.Namespace)
}
return true, nil
}