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