apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: {{- include "endpoint-copier-operator.labels" . | nindent 4 }} name: {{ include "endpoint-copier-operator.fullname" . }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ include "endpoint-copier-operator.fullname" . }} subjects: - kind: ServiceAccount name: {{ include "endpoint-copier-operator.fullname" . }} namespace: {{ .Release.Namespace }}