apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: ibm-cpd-scheduler-cr
  labels:
    app.kubernetes.io/instance: cpd-scheduler
    app.kubernetes.io/managed-by: ansible
    app.kubernetes.io/name: ibm-cpd-scheduler
    release: cpd-scheduler
rules:
- apiGroups:
  - ""
  resources:
  - namespaces
  - pods
  - resourcequotas
  - nodes
  verbs:
  - list
  - update
  - get
  - watch
  - patch
  - create
- apiGroups:
  - batch
  resources:
  - '*'
  verbs:
  - list
  - update
  - get
  - watch
  - patch
  - create
- apiGroups:
  - ibm.com
  resources:
  - paralleljobs
  - resourceplans
  verbs:
  - '*'
- apiGroups:
  - ibm.com
  resources:
  - '*'
  verbs:
  - update
- apiGroups:
  - apiextensions.k8s.io
  resources:
  - customresourcedefinitions
  verbs:
  - '*'
- apiGroups:
  - storage.k8s.io
  resources:
  - storageclasses
  verbs:
  - watch
  - get
  - list
- apiGroups:
  - ""
  resources:
  - configmaps
  verbs:
  - list
  - watch
  - get
- apiGroups:
  - ""
  resources:
  - events
  verbs:
  - list
  - watch
  - get
  - create
- apiGroups:
  - security.openshift.io
  resources:
  - securitycontextconstraints
  resourceNames:
  - restricted
  - cpd-noperm-scc
  verbs:
  - use

