charts/test-chart-1/templates/serviceaccount.yaml

14 lines
399 B
YAML
Raw Permalink Normal View History

2024-09-20 16:32:44 -04:00
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "test-chart-1.serviceAccountName" . }}
labels:
{{- include "test-chart-1.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
{{- end }}