apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: {{ .Values.cronJob.name }}-clusterrole
rules:
  - apiGroups: ["velero.io"]
    resources:
     - "*"
    verbs:
     - "*"
  - apiGroups: ["*"]
    resources:
    - "secrets"
    - "codebases"
    - "gerrits"
    - "jenkins"
    - "services"
    - "gerritmergerequests"
    - "customresourcedefinitions"
    verbs:
    - "create"
    - "get"
    - "list"
    - "watch"
    - "patch"
    - "update"