code: func (a *Webhook) ShouldCallHook(h *v1beta1.Webhook, attr admission.Attributes) (bool, *apierrors.StatusError) {
  	var matches bool
  	for _, r := range h.Rules {
  		m := rules.Matcher{Rule: r, Attr: attr}
  		if m.Matches() {
  			matches = true
  			break
  		}
  	}
  	if !matches {
  		return false, nil
  	}
  
  	return a.namespaceMatcher.MatchNamespaceSelector(h, attr)
  }
docs: // ShouldCallHook makes a decision on whether to call the webhook or not by the attribute.