Skip to content

Commit

Permalink
dnsproxy: print total number of rules if too many
Browse files Browse the repository at this point in the history
GetRules() will not process more than 1000 rules per port.
Print how many are the total rules in the message.

Signed-off-by: Kornilios Kourtis <kornilios@isovalent.com>
  • Loading branch information
kkourt authored and christarazi committed Nov 12, 2020
1 parent 1a67948 commit b115c54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/fqdn/dnsproxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ func (p *DNSProxy) GetRules(endpointID uint16) restore.DNSRules {
logfields.Port: port,
logfields.EndpointLabelSelector: cs,
logfields.Limit: p.maxIPsPerRestoredRule,
"totalRules": len(p.LookupIPsBySecID(nid)),
}).Warning("Too many IPs for a rule, skipping the rest")
break Loop
}
Expand Down

0 comments on commit b115c54

Please sign in to comment.