// filterWebhookedResources returns a slice of WebhookedResourceDefinitions that contains only those of the given webhookedResources whose ResourceName is not specified in disabledWebhooks
filterWebhookedResources returns a slice of WebhookedResourceDefinitions that contains only those of the given webhookedResources whose ResourceName is not specified in disabledWebhooks
// filterWebhookedResources returns a slice of WebhookedResourceDefinitions that contains only those of the given webhookedResources whose ResourceName is not specified in disabledWebhooks
func filterWebhookedResources(webhookedResources map[string]webhook.WebhookedResourceDefinition, disabledWebhooks map[string]bool) []webhook.WebhookedResourceDefinition {
	fwr := []webhook.WebhookedResourceDefinition{}
	if _, ok := disabledWebhooks["all"]; ok {
		return fwr 
	}
	for _, wr := range webhookedResources {
		if _, ok := disabledWebhooks[wr.ResourceName]; !ok {
			fwr = append(fwr, wr)
		}
	}
	return fwr
}
func filterWebhookedResources ( webhookedResources map [ string ] webhook . WebhookedResourceDefinition , disabledWebhooks map [ string ] bool ) [ ] webhook . WebhookedResourceDefinition { fwr := [ ] webhook . WebhookedResourceDefinition { } if _ , ok := disabledWebhooks [ " " ] ; ok { return fwr } for _ , wr := range webhookedResources { if _ , ok := disabledWebhooks [ wr . ResourceName ] ; ! ok { fwr = append ( fwr , wr ) } } return fwr }
filterWebhookedResources returns a slice of WebhookedResourceDefinitions that contains only those of the given webhookedResources whose ResourceName is not specified in disabledWebhooks
filterWebhookedResources returns a slice of WebhookedResourceDefinitions that contains only those of the given webhookedResources whose ResourceName is not specified in disabledWebhooks
// all webhooks disabled, return empty slice