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

Merge pull request #1746 from eminaktas/fix/correct-function-comment

fix: correct comment for HaveNoEvictionAnnotation
This commit is contained in:
Kubernetes Prow Robot
2025-09-30 03:10:18 -07:00
committed by GitHub

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