apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: mesh-discovery-clusterrole
rules:
  - apiGroups: ["apps"]
    resources: ["deployments", "replicasets"]
    verbs: ["get", "list", "watch"]
  - apiGroups: [""]
    resources: ["pods", "services"]
    verbs: ["get", "list", "watch"]
  - apiGroups: [""]
    resources: ["secrets"]
    verbs: ["get", "list", "watch", "create", "update", "delete"]
  - apiGroups: ["discovery.zephyr.solo.io"]
    resources: ["meshes", "meshworkloads", "meshservices", "kubernetesclusters"]
    verbs: ["*"]
  - apiGroups: ["core.zephyr.solo.io"]
    resources: ["settings"]
    verbs: ["get", "list", "watch"]
