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