You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automated cherry pick of #1378: Fix the replicas type for the helm-chart
#1390: allow 'falsey' value in cmdOption
#1412: fix helm's default deschedulerPolicy
#1413: fix TOC location in Readme
#1416: use cmd context instead of using context.Background()
#1395: fix the issue that the pod anti-filtering rules are not
Copy file name to clipboardExpand all lines: charts/descheduler/templates/NOTES.txt
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
Descheduler installed as a {{ .Values.kind }}.
2
2
3
3
{{- if eq .Values.kind "Deployment" }}
4
-
{{- if eq .Values.replicas 1.0}}
4
+
{{- if eq (.Values.replicas | int) 1 }}
5
5
WARNING: You set replica count as 1 and workload kind as Deployment however leaderElection is not enabled. Consider enabling Leader Election for HA mode.
klog.V(4).InfoS("Pod doesn't match inter-pod anti-affinity rule of assigned pod on node", "candidatePod", klog.KObj(pod), "assignedPod", klog.KObj(assignedPod))
360
+
continue
361
+
}
362
+
363
+
if_, ok:=node.Labels[term.TopologyKey]; ok {
364
+
klog.V(1).InfoS("Pod matches inter-pod anti-affinity rule of assigned pod on node", "candidatePod", klog.KObj(pod), "assignedPod", klog.KObj(assignedPod))
klog.V(4).InfoS("CandidatePod doesn't matches inter-pod anti-affinity rule of assigned pod on node", "candidatePod", klog.KObj(candidatePod), "assignedPod", klog.KObj(assignedPod))
klog.V(1).InfoS("CandidatePod matches inter-pod anti-affinity rule of assigned pod on node", "candidatePod", klog.KObj(candidatePod), "assignedPod", klog.KObj(assignedPod))
374
+
returntrue
339
375
}
340
376
}
341
377
}
342
378
}
379
+
343
380
returnfalse
344
381
}
345
382
346
-
// getPodAntiAffinityTerms gets the antiaffinity terms for the given pod.
0 commit comments