(existing: &mut Vec<L7DenyRule>, incoming: &[L7DenyRule])
| 789 | } |
| 790 | |
| 791 | fn append_unique_deny_rules(existing: &mut Vec<L7DenyRule>, incoming: &[L7DenyRule]) { |
| 792 | for rule in incoming { |
| 793 | if !existing.contains(rule) { |
| 794 | existing.push(rule.clone()); |
| 795 | } |
| 796 | } |
| 797 | } |
| 798 | |
| 799 | fn normalize_rule(rule: &mut NetworkPolicyRule) { |
| 800 | for endpoint in &mut rule.endpoints { |
no test coverage detected