{{- if eq .Values.global.platform "openshift" -}}
apiVersion: authorization.openshift.io/v1
kind: RoleBinding
metadata:
  name: {{ .Values.operator.serviceAccountName }}-edp-admin-{{ .Release.Namespace }}
roleRef:
  name: admin
subjects:
  - kind: ServiceAccount
    name: {{ .Values.operator.serviceAccountName }}-edp
    namespace: {{ .Release.Namespace }}
userNames:
  - system:serviceaccount:{{ .Release.Namespace }}:{{ .Values.operator.serviceAccountName }}-edp
groupNames: []
{{- end -}}