apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: istiod-istio-system
rules:
  - resources: ["gateways"]
    apiGroups: ["networking.istio.io"]
    verbs: ["create"]
  - resources: ["secrets"]
    apiGroups: [""]
    # TODO lock this down to istio-ca-cert if not using the DNS cert mesh config
    verbs: ["create", "get", "watch", "list", "update", "delete"]
