pod-volume-cleaner/helm/templates/serviceaccount.yaml

13 lines
328 B
YAML
Raw Normal View History

2022-09-12 14:34:34 +00:00
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "pod-cleaner.serviceAccountName" . }}
labels:
{{- include "pod-cleaner.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}