rolebinding.yaml 465 B

12345678910111213141516
  1. {{- if or .Values.rbac.pspEnabled .Values.rbac.sccEnabled }}
  2. apiVersion: rbac.authorization.k8s.io/v1
  3. kind: RoleBinding
  4. metadata:
  5. name: {{ include "loki.fullname" . }}
  6. labels:
  7. {{- include "loki.labels" . | nindent 4 }}
  8. roleRef:
  9. apiGroup: rbac.authorization.k8s.io
  10. kind: Role
  11. name: {{ include "loki.fullname" . }}
  12. subjects:
  13. - kind: ServiceAccount
  14. name: {{ include "loki.serviceAccountName" . }}
  15. namespace: {{ .Release.Namespace }}
  16. {{- end }}