func NotFoundRuleCollection()

in pkg/azure/configbuilder.go [45:53]


func NotFoundRuleCollection(rule azurefirewallrulesv1.AzureFirewallEgressrulesRulesSpec, ruleCollections []n.BasicFirewallPolicyRuleCollection) bool {
	for i := 0; i < len(ruleCollections); i++ {
		ruleCollection := ruleCollections[i].(*n.FirewallPolicyFilterRuleCollection)
		if rule.RuleCollectionName == *ruleCollection.Name {
			return false
		}
	}
	return true
}