{{ if .Values.framework }}
{{ if eq .Values.framework "operator-sdk" }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
    name: {{ include "process-history-service-persistence.serviceAccountName" . }}-edp
roleRef:
    kind: Role
    name: edp-{{ include "process-history-service-persistence.serviceAccountName" . }}-role
    apiGroup: rbac.authorization.k8s.io
subjects:
    - kind: ServiceAccount
      name: {{ include "process-history-service-persistence.serviceAccountName" . }}
{{ end }}
{{ end }}