github.com/replicatedhq/ship@v0.55.0/integration/init/grafana-with-values/expected/.ship/upstream/templates/clusterrolebinding.yaml (about)

     1  {{- if .Values.rbac.create }}
     2  kind: ClusterRoleBinding
     3  apiVersion: rbac.authorization.k8s.io/v1
     4  metadata:
     5    name: {{ template "grafana.fullname" . }}-clusterrolebinding
     6    labels:
     7      app: {{ template "grafana.name" . }}
     8      chart: {{ template "grafana.chart" . }}
     9      release: {{ .Release.Name }}
    10      heritage: {{ .Release.Service }}
    11  {{- with .Values.annotations }}
    12    annotations:
    13  {{ toYaml . | indent 4 }}
    14  {{- end }}
    15  subjects:
    16    - kind: ServiceAccount
    17      name: {{ template "grafana.serviceAccountName" . }}
    18      namespace: {{ .Release.Namespace }}
    19  roleRef:
    20    kind: ClusterRole
    21    name: {{ template "grafana.fullname" . }}-clusterrole
    22    apiGroup: rbac.authorization.k8s.io
    23  {{- end}}