---
{{- if .Values.rbac.create }}
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding
metadata:
  name: pachyderm
roleRef:
  apiGroup: ''
  kind: ClusterRole
  name: pachyderm
subjects:
  - kind: ServiceAccount
    name: pachyderm
    namespace: {{ .Release.Namespace }}
{{- end }}
