apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: sparkoperator.v1.1.0-clusterrole
rules:
- apiGroups:
  - radanalytics.io
  resources:
  - '*'
  verbs:
  - '*'
# - apiGroups:
#   - apiextensions.k8s.io
#   resources:
#   - '*'
#   verbs:
#   - '*'
- apiGroups:
  - networking.k8s.io/v1
  resources:
  - '*'
  verbs:
  - '*'
- apiGroups:
  - ""
  - "extensions"
  resources:
  - pods
  - services
  - endpoints
  - persistentvolumeclaims
  - events
  - configmaps
  - secrets
  - ingresses
  verbs:
  - '*'

- apiGroups:
  - ""
  resources:
  - pods
  - replicationcontrollers
  - services
  - configmaps
  - persistentvolumeclaims
  verbs:
  - create
  - delete
  - deletecollection
  - get
  - list
  - update
  - watch
  - patch
- apiGroups:
  - apiextensions.k8s.io
  resources:
  - customresourcedefinitions
  verbs:
  - list