apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: {{ include "namespace-annotation-webhook.fullname" . }}
  labels:
    app.kubernetes.io/name: {{ include "namespace-annotation-webhook.name" . }}
    app.kubernetes.io/instance: {{ .Release.Name }}
subjects:
  - kind: ServiceAccount
    name: {{ include "namespace-annotation-webhook.fullname" . }}
    namespace: {{ .Release.Namespace }}
roleRef:
  kind: ClusterRole
  name: {{ include "namespace-annotation-webhook.fullname" . }}
  apiGroup: rbac.authorization.k8s.io
