deploy/eck-stack/charts/eck-beats/templates/cluster-role-binding.yaml (35 lines of code) (raw):

{{- with .Values.clusterRoleBinding }} --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ .name }} labels: {{- include "beat.labels" $ | nindent 4 }} {{- with .labels }} {{- toYaml . | nindent 4 }} {{- end }} {{- if or $.Values.annotations .annotations }} annotations: {{- with $.Values.annotations }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .annotations }} {{- toYaml . | nindent 4 }} {{- end }} {{- end }} {{- with .subjects }} subjects: {{- range . }} - kind: {{ .kind }} name: {{ .name }} namespace: {{ .namespace | default $.Release.Namespace | quote }} {{- end }} {{- end }} {{- with .roleRef }} roleRef: kind: {{ .kind }} name: {{ .name }} apiGroup: {{ .apiGroup }} {{- end }} {{- end }}