apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: {{ include "kueue.fullname" . }}-leader-election-rolebinding
  namespace: '{{ .Release.Namespace }}'
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: '{{ include "kueue.fullname" . }}-leader-election-role'
subjects:
- kind: ServiceAccount
  name: '{{ include "kueue.fullname" . }}-controller-manager'
  namespace: '{{ .Release.Namespace }}'
