github.com/replicatedcom/ship@v0.50.0/integration/init/grafana-with-values/expected/.ship/upstream/templates/clusterrole.yaml (about)

     1  {{- if .Values.rbac.create }}
     2  kind: ClusterRole
     3  apiVersion: rbac.authorization.k8s.io/v1
     4  metadata:
     5    labels:
     6      app: {{ template "grafana.name" . }}
     7      chart: {{ template "grafana.chart" . }}
     8      release: {{ .Release.Name }}
     9      heritage: {{ .Release.Service }}
    10  {{- with .Values.annotations }}
    11    annotations:
    12  {{ toYaml . | indent 4 }}
    13  {{- end }}
    14    name: {{ template "grafana.fullname" . }}-clusterrole
    15  {{- if or .Values.sidecar.dashboards.enabled .Values.sidecar.datasources.enabled }}
    16  rules:
    17  - apiGroups: [""] # "" indicates the core API group
    18    resources: ["configmaps"]
    19    verbs: ["get", "watch", "list"]
    20  {{- else }}
    21  rules: []
    22  {{- end}}
    23  {{- end}}