rolebinding.yaml 596 B

123456789101112131415161718192021
  1. {{- if .Values.rbac.create -}}
  2. apiVersion: rbac.authorization.k8s.io/v1beta1
  3. kind: RoleBinding
  4. metadata:
  5. name: {{ template "grafana.fullname" . }}
  6. namespace: {{ template "grafana.namespace" . }}
  7. labels:
  8. {{- include "grafana.labels" . | nindent 4 }}
  9. {{- with .Values.annotations }}
  10. annotations:
  11. {{ toYaml . | indent 4 }}
  12. {{- end }}
  13. roleRef:
  14. apiGroup: rbac.authorization.k8s.io
  15. kind: Role
  16. name: {{ template "grafana.fullname" . }}
  17. subjects:
  18. - kind: ServiceAccount
  19. name: {{ template "grafana.serviceAccountName" . }}
  20. namespace: {{ template "grafana.namespace" . }}
  21. {{- end -}}