---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: "{{ .Chart.Name }}-edit-{{ .Chart.Version }}"
  namespace: "{{ .Values.global.namespace }}"
  labels:
    app: "{{ .Values.global.label.app }}"
    version: "{{ .Chart.Version }}"
subjects:
- kind: ServiceAccount
  name: "{{ .Values.serviceAccountNames.pipeline}}"
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: "{{ .Chart.Name }}-edit-{{ .Chart.Version }}"
