We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fqdn-policy/controllers/fqdnnetworkpolicy_controller.go
Lines 453 to 475 in fcbf943
The list should maybe be sorted, to avoid updating the resource on every reconcile?
egress: - ports: - protocol: TCP port: 443 to: - ipBlock: cidr: 8.8.8.16/32 - ipBlock: cidr: 8.8.8.15/32 - ipBlock: cidr: 8.8.8.11/32 - ipBlock: cidr: 8.8.8.10/32 - ipBlock: cidr: 8.8.8.9/32 - ipBlock: cidr: 8.8.8.13/32 - ipBlock: cidr: 8.8.8.14/32 - ipBlock: cidr: 8.8.8.17/32 - ipBlock: cidr: 8.8.8.8/32
The text was updated successfully, but these errors were encountered:
Would a simple https://pkg.go.dev/sort#Slice work?
sort.Slice(e.Answer, func(i, j int) bool { return e.Answer[i].String() < e.Answer[j].String() })
or after the frule.To loop:
frule.To
sort.Slice(peers, func(i, j int) bool { return peers[i].IPBlock.CIDR < peers[j].IPBlock.CIDR })
Sorry, something went wrong.
No branches or pull requests
fqdn-policy/controllers/fqdnnetworkpolicy_controller.go
Lines 453 to 475 in fcbf943
The list should maybe be sorted, to avoid updating the resource on every reconcile?
The text was updated successfully, but these errors were encountered: