[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>
(cherry picked from commit a963736f66)
release-3.0
Naseem 6 years ago committed by Matt Farina
parent d2cf1284ee
commit 5d2ef8556a
No known key found for this signature in database
GPG Key ID: 9436E80BFBA46909

@ -103,6 +103,8 @@ fullnameOverride: ""
serviceAccount: serviceAccount:
# Specifies whether a service account should be created # Specifies whether a service account should be created
create: true create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use. # The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template # If not set and create is true, a name is generated using the fullname template
name: name:
@ -302,6 +304,10 @@ metadata:
name: {{ include "<CHARTNAME>.serviceAccountName" . }} name: {{ include "<CHARTNAME>.serviceAccountName" . }}
labels: labels:
{{ include "<CHARTNAME>.labels" . | nindent 4 }} {{ include "<CHARTNAME>.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end -}} {{- end -}}
` `

Loading…
Cancel
Save