{{- if eq .Values.kind "DaemonSet" }} apiVersion: apps/v1 kind: DaemonSet metadata: name: {{ include "fluentd.fullname" . }} labels: {{- include "fluentd.labels" . | nindent 4 }} spec: selector: matchLabels: {{- include "fluentd.selectorLabels" . | nindent 6 }} template: metadata: {{- with .Values.podAnnotations }} annotations: {{- toYaml . | nindent 8 }} {{- end }} labels: {{- include "fluentd.selectorLabels" . | nindent 8 }} {{- with .Values.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} spec: {{- include "fluentd.pod" . | nindent 6 }} {{- end }}