Files
toutoukan/micro-service/toutoukan-chart/templates/serviceaccount.yaml
2025-09-16 21:04:58 +08:00

14 lines
405 B
YAML

{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "toutoukan-chart.serviceAccountName" . }}
labels:
{{- include "toutoukan-chart.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
{{- end }}