{{- if .Values.rbac.serviceAccount.create -}} apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "pod-cleaner.serviceAccountName" . }} labels: {{- include "pod-cleaner.labels" . | nindent 4 }} {{- with .Values.rbac.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} {{- end }}