# Source: jxboot-helmfile-resources/charts/controllerrole/templates/clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: controllerrole-jx
  labels:
    gitops.jenkins-x.io/pipeline: 'cluster'
rules:
  - apiGroups:
      - ""
      - extensions
      - apps
      - rbac.authorization.k8s.io
      - batch
      - jenkins.io
    resources:
      - '*'
      - pods/*
    verbs:
      - list
      - get
      - watch
      - create
      - update
      - patch
      - delete
  - apiGroups:
      - apiextensions.k8s.io
    resources:
      - customresourcedefinitions
    verbs:
      - get
      - create
      - patch
      - update
      - list
