We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1071531 commit 12d2834Copy full SHA for 12d2834
cns/ipampool/v2/adapter.go
@@ -34,8 +34,8 @@ func PodIPDemandListener(ch chan<- int) func([]v1.Pod) {
34
// Filter out Pods in terminal phases (Succeeded/Failed) since they no longer
35
// have network sandboxes and don't contribute to IP demand
36
activePods := 0
37
- for _, pod := range pods {
38
- if pod.Status.Phase != v1.PodSucceeded && pod.Status.Phase != v1.PodFailed {
+ for i := range pods {
+ if pods[i].Status.Phase != v1.PodSucceeded && pods[i].Status.Phase != v1.PodFailed {
39
activePods++
40
}
41
0 commit comments