apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: container-mom-operator
  labels:
    app: container-mom
rules:
- apiGroups: [""]
  resources: ["pods", "services", "secrets", "configmaps"]
  verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: ["apps"]
  resources: ["deployments"]
  verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: ["containermom.josie.cloud"]
  resources: ["*"]
  verbs: ["*"]
- apiGroups: ["container.mom"]
  resources: ["containermomdeployments"]
  verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] 