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

fix: correct comment for HaveNoEvictionAnnotation

This commit is contained in:
Emin Aktas
2025-09-20 12:53:56 +03:00
parent 483c9c1499
commit d47e077897

View File

@@ -62,7 +62,7 @@ func SupportEviction(client clientset.Interface) (string, error) {
return "", nil
}
// HaveEvictAnnotation checks if the pod have evict annotation
// HaveNoEvictionAnnotation checks if the pod have soft no-eviction annotation
func HaveNoEvictionAnnotation(pod *corev1.Pod) bool {
_, found := pod.ObjectMeta.Annotations[SoftNoEvictionAnnotationKey]
return found