kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: grafana-role #{chart.name}
  labels: {} #[merge]{chart.labels}
  annotations: {} #[merge]{chart.annotations}

rules: #[append]{rbac.extraClusterRoleRules}

  #[if sidecar.dashboards or sidecar.datasources]
  - apiGroups: [""] # "" indicates the core API group
    resources: ["configmaps", "secrets"]
    verbs: ["get", "watch", "list"]


