{{ if .Values.nfc_monitoring.additions.dashboard_sidecar.enabled -}} --- kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: labels: {{ toYaml $.Values.nfc_monitoring.grafana.labels | nindent 4 }} app.kubernetes.io/managed-by: {{ $.Release.Service }} app.kubernetes.io/part-of: {{ $.Chart.Name }} app.kubernetes.io/version: {{ $.Chart.Version }} name: Grafana-Sidecar roleRef: kind: ClusterRole name: Grafana-Sidecar apiGroup: rbac.authorization.k8s.io subjects: - kind: ServiceAccount name: grafana namespace: "{{ .Values.nfc_monitoring.grafana.namespace }}" {{- end }}