# Source: jxboot-helmfile-resources/charts/controllerbuild/templates/clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: controllerbuild-jx
  labels:
    gitops.jenkins-x.io/pipeline: 'environment'
rules:
- apiGroups:
  - ""
  resources:
  - namespaces
  verbs:
  - get
  - list
- apiGroups:
  - apiextensions.k8s.io
  resources:
  - customresourcedefinitions
  verbs:
  - get
  - create
  - patch
  - update
  - list
- apiGroups:
  - tekton.dev
  resources:
  - pipelines
  - pipelinereources
  - pipelineruns
  - tasks
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - apps
  resources:
  - deployments
  verbs:
  - get
  - list
  - watch
