mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 05:14:13 +01:00
Add check for critical pods to avoid eviction.
This commit is contained in:
@@ -73,7 +73,7 @@ func FindDuplicatePods(pods []*v1.Pod) DuplicatePodsMap {
|
||||
if err != nil || sr == nil {
|
||||
continue
|
||||
}
|
||||
if podutil.IsMirrorPod(pod) || podutil.IsDaemonsetPod(sr) || podutil.IsPodWithLocalStorage(pod) {
|
||||
if podutil.IsMirrorPod(pod) || podutil.IsDaemonsetPod(sr) || podutil.IsPodWithLocalStorage(pod) || podutil.IsCriticalPod(pod) {
|
||||
continue
|
||||
}
|
||||
s := strings.Join([]string{sr.Reference.Kind, sr.Reference.Namespace, sr.Reference.Name}, "/")
|
||||
|
||||
Reference in New Issue
Block a user