parent
77b922aa00
commit
6d9772ce00
1 changed files with 5 additions and 0 deletions
|
@ -337,6 +337,11 @@ func (n *NGINXController) getStreamServices(configmapName string, proto apiv1.Pr
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Keep upstream order sorted to reduce unnecessary nginx config reloads.
|
||||||
|
sort.SliceStable(svcs, func(i, j int) bool {
|
||||||
|
return svcs[i].Port < svcs[j].Port
|
||||||
|
})
|
||||||
|
|
||||||
return svcs
|
return svcs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue