apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: terraform-controller
rules:
- apiGroups:
  - terraformcontroller.cattle.io
  resources:
  - states
  verbs:
  - get
  - list
  - watch
  - patch
  - update
- apiGroups:
  - terraformcontroller.cattle.io
  resources:
  - modules
  verbs:
  - get
  - list
  - watch
  - patch
  - update
- apiGroups:
  - terraformcontroller.cattle.io
  resources:
  - executions
  verbs:
  - create
  - delete
  - get
  - list
  - patch
  - watch
  - update
- apiGroups:
  - ""
  resources:
  - configmaps
  verbs:
  - get
  - watch
  - list
  - create
  - update
  - delete
- apiGroups:
  - "coordination.k8s.io"
  resources:
  - leases
  verbs:
  - get
  - create
  - update
  - list
- apiGroups:
  - ""
  resources:
  - secrets
  verbs:
  - get
  - watch
  - create
  - delete
  - update
  - list
- apiGroups:
  - ""
  resources:
  - serviceaccounts
  verbs:
  - create
  - delete
  - get
  - list
  - update
- apiGroups:
  - "rbac.authorization.k8s.io"
  resources:
  - roles
  - rolebindings
  verbs:
  - create
  - delete
  - get
  - list
- apiGroups:
  - "batch"
  resources:
  - jobs
  verbs:
  - create
  - update
  - get
  - delete
  - list
