Skip to content

Commit

Permalink
fix flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
omris94 committed Oct 1, 2024
1 parent f7f2bbd commit 815f56f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mapper/pkg/dnsintentspublisher/dns_intents_publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,11 @@ func (p *Publisher) updateResolvedIPs(ctx context.Context, clientIntents otteriz

updatedResolvedIPs := make([]otterizev2alpha1.ResolvedIPs, 0, len(resolvedIPsMap))
for dnsName, ips := range resolvedIPsMap {
ipSlice := lo.MapToSlice(ips, func(ip string, _ struct{}) string { return ip })
slices.Sort(ipSlice)
updatedResolvedIPs = append(updatedResolvedIPs, otterizev2alpha1.ResolvedIPs{
DNS: dnsName,
IPs: lo.MapToSlice(ips, func(ip string, _ struct{}) string { return ip }),
IPs: ipSlice,
})
}

Expand Down

0 comments on commit 815f56f

Please sign in to comment.