apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: {{ include "cni-metrics-helper.fullname" . }}
  labels:
{{ include "cni-metrics-helper.labels" . | indent 4 }}
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: {{ include "cni-metrics-helper.fullname" . }}
subjects:
  - kind: ServiceAccount
    name: {{ template "cni-metrics-helper.serviceAccountName" . }}
    namespace: {{ .Release.Namespace }}
