watcher/build/chart/templates/serviceaccount.yaml
zhanghaogang 779bdd4033
All checks were successful
Build image / build (push) Successful in 51s
chore: 添加Helm Chart打包和推送脚本
- 新增build-chart.sh脚本用于自动化打包和推送Helm Chart

- 支持自动获取最新生成的包名

- 支持推送至OCI仓库

- 自动清理生成的包文件
2025-03-13 17:48:17 +08:00

14 lines
385 B
YAML

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