---
apiVersion: v1
kind: ServiceAccount
metadata:
  name: apicoverage-webhook
  namespace: knative-serving
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: apicoverage-webhook-role
rules:
- apiGroups: ["admissionregistration.k8s.io"]
  resources: ["validatingwebhookconfigurations"]
  verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
- apiGroups: ["extensions"]
  resources: ["ingresses","deployments"]
  verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: apicoverage-webhook-clusterrolebinding
  namespace: knative-serving
subjects:
- kind: ServiceAccount
  name: apicoverage-webhook
  namespace: knative-serving
roleRef:
  kind: ClusterRole
  name: apicoverage-webhook-role
  apiGroup: rbac.authorization.k8s.io
