rolebinding.yaml 588 B

12345678910111213141516171819
  1. {{- if .Values.rbac.create }}
  2. apiVersion: rbac.authorization.k8s.io/v1
  3. kind: RoleBinding
  4. metadata:
  5. name: {{ template "fluent-bit-loki.fullname" . }}
  6. namespace: {{ .Release.Namespace }}
  7. labels:
  8. app: {{ template "fluent-bit-loki.name" . }}
  9. chart: {{ template "fluent-bit-loki.chart" . }}
  10. heritage: {{ .Release.Service }}
  11. release: {{ .Release.Name }}
  12. roleRef:
  13. apiGroup: rbac.authorization.k8s.io
  14. kind: Role
  15. name: {{ template "fluent-bit-loki.fullname" . }}
  16. subjects:
  17. - kind: ServiceAccount
  18. name: {{ template "fluent-bit-loki.serviceAccountName" . }}
  19. {{- end }}