apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: cake-operator
  labels:
    app: cake-operator
rules:
  - apiGroups:
      - ""
    resources:
      - pods
      - services
      - endpoints
      - persistentvolumeclaims
      - events
      - configmaps
      - secrets
    verbs:
      - get
      - list
      - watch
      - create
      - delete
      - patch
      - update
  - apiGroups:
      - "apps"
    resources:
      - deployments
      - daemonsets
      - replicasets
      - statefulsets
    verbs:
      - get
      - list
      - watch
      - create
      - delete
      - patch
      - update
  - apiGroups:
      - "fvaleri.it"
    resources:
      - cakes
      - cakes/status
    verbs:
      - get
      - list
      - watch
      - create
      - delete
      - patch
      - update
