1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-25 20:59:28 +01:00

Mention pod eviction is in dry mode when set

Indicate whether a pod is only virtually evicted so there's no confusion
with the real eviction.
This commit is contained in:
Jan Chaloupka
2020-05-20 10:40:56 +02:00
parent 34550d4b7c
commit eacbae72fd

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
}