diff --git a/internal/ingress/controller/store/store.go b/internal/ingress/controller/store/store.go index 114bfe18e..505ef806c 100644 --- a/internal/ingress/controller/store/store.go +++ b/internal/ingress/controller/store/store.go @@ -778,6 +778,12 @@ func (s *k8sStore) ListIngresses(filter IngressFilterFunc) []*ingress.Ingress { sort.SliceStable(ingresses, func(i, j int) bool { ir := ingresses[i].CreationTimestamp jr := ingresses[j].CreationTimestamp + if ir.Equal(&jr) { + in := fmt.Sprintf("%v/%v", ingresses[i].Namespace, ingresses[i].Name) + jn := fmt.Sprintf("%v/%v", ingresses[j].Namespace, ingresses[j].Name) + klog.Warningf("Ingress %v and %v have identical CreationTimestamp", in, jn) + return in > jn + } return ir.Before(&jr) })