clusterrole.yaml 439 B

123456789101112
  1. {{- if .Values.managedServiceAccount }}
  2. apiVersion: rbac.authorization.k8s.io/v1
  3. kind: ClusterRole
  4. metadata:
  5. name: {{ template "filebeat.serviceAccount" . }}-cluster-role
  6. labels:
  7. app: "{{ template "filebeat.fullname" . }}"
  8. chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
  9. heritage: {{ .Release.Service | quote }}
  10. release: {{ .Release.Name | quote }}
  11. rules: {{ toYaml .Values.clusterRoleRules | nindent 2 -}}
  12. {{- end -}}