mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 21:31:18 +01:00
Although eviction requests (policy/v1) are not persisted long term, their API still implements the full metav1.ObjectMeta struct. While name and namespace refer to the pod being evicted, eviction requests can still carry annotations. This change adds annotations to descheduler-initiated evictions, including the requester, reason, and the strategy or plugin that triggered them. While these details are already logged by the descheduler, exposing them as annotations allows external webhooks or controllers to provide clearer context about each eviction request, both for tracking and prioritization purposes. Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>