apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: vm-operator
  labels:
    app.kubernetes.io/name: vm-operator
rules:
- apiGroups:
  - vmoperator.jdrupes.org
  resources:
  - vms
  - vmpools
  verbs:
  - '*'
- apiGroups:
  - vmoperator.jdrupes.org
  resources:
  - vms/status
  verbs:
  - patch
- apiGroups:
  - apps
  resources:
  - statefulsets
  verbs:
  - '*'
- apiGroups:
  - ""
  resources:
  - configmaps
  - secrets
  - services
  verbs:
  - '*'
- apiGroups:
  - ""
  resources:
  - persistentvolumeclaims
  - pods
  verbs:
  - list
  - get
  - create
  - delete
  - patch
