{{- if eq .Values.global.platform "openshift" -}}
apiVersion: authorization.openshift.io/v1
kind: RoleBinding
metadata:
  labels:
    {{- include "edp-install.labels" . | nindent 4 }}
  name: edp-kaniko-registry-editor
roleRef:
  name: registry-editor
subjects:
- kind: User
  name: kaniko-push
{{- end -}}
