apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: edp-{{ .Values.name }}-leader-election-rolebinding
  labels:
    {{- include "nexus-operator.labels" . | nindent 4 }}
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: edp-{{ .Values.name }}-leader-election-role
subjects:
  - kind: ServiceAccount
    name: edp-{{ .Values.name }}
