def rule(event):
    if all(
        [
            event.deep_get("objectRef", "apiGroup", default="") == "admissionregistration.k8s.io",
            event.deep_get("objectRef", "resource", default="")
            in ["mutatingwebhookconfigurations", "validatingwebhookconfigurations"],
            event.deep_get("verb", default="")
            in ["create", "delete", "patch", "replace", "update"],
        ]
    ):
        return True
    return False
