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

13 lines
338 B
YAML

{{- 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 }}