mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
[helm create] Include serviceAccount.annotations value (#7246)
* Include serviceAccount.annotations value Signed-off-by: Naseem <naseemkullah@gmail.com> * Add comment about service account annotations Signed-off-by: Naseem <naseemkullah@gmail.com>
This commit is contained in:
parent
edaac9649e
commit
a963736f66
1 changed files with 6 additions and 0 deletions
|
|
@ -103,6 +103,8 @@ fullnameOverride: ""
|
|||
serviceAccount:
|
||||
# Specifies whether a service account should be created
|
||||
create: true
|
||||
# Annotations to add to the service account
|
||||
annotations: {}
|
||||
# The name of the service account to use.
|
||||
# If not set and create is true, a name is generated using the fullname template
|
||||
name:
|
||||
|
|
@ -303,6 +305,10 @@ metadata:
|
|||
name: {{ include "<CHARTNAME>.serviceAccountName" . }}
|
||||
labels:
|
||||
{{ include "<CHARTNAME>.labels" . | nindent 4 }}
|
||||
{{- with .Values.serviceAccount.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
`
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue