Skip to content

Commit

Permalink
feat(main): add serviceAccountName option
Browse files Browse the repository at this point in the history
  • Loading branch information
zavertiaev committed Nov 26, 2024
1 parent 92cf13d commit 05de8e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/main/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.6.0
version: 0.7.0

maintainers:
- name: "zavertiaev"
Expand Down
3 changes: 3 additions & 0 deletions charts/main/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- if .Values.serviceAccountName }}
serviceAccountName: {{ .Values.serviceAccountName }}
{{- end }}
{{- if .Values.secretManager.enabled }}
serviceAccountName: {{ .Values.secretManager.serviceAccount.name }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions charts/main/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

replicaCount: 1

serviceAccountName: ""

image:
repository: ""
pullPolicy: IfNotPresent
Expand Down

0 comments on commit 05de8e3

Please sign in to comment.