mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-05-08 10:16:56 +00:00
Background evictions were completely invisible in metrics: the ignore=true path caused EvictPod to return before incrementing any counter, leaving operators with no signal that a background eviction had been triggered or completed. Add a "background" result label emitted at eviction request time and a "success" label emitted from the informer DeleteFunc when the pod is actually gone. The two labels together give a complete picture: "background" is recorded at eviction request time and may not have a matching "success" if the descheduler restarts before the pod is deleted, while "success" confirms the eviction completed within the same lifecycle. Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>