From 20d8046b0069f7305831f6b339675eb80c2666df Mon Sep 17 00:00:00 2001 From: Naseem Date: Mon, 16 Dec 2019 15:54:59 -0500 Subject: [PATCH] Include serviceAccount.annotations value Signed-off-by: Naseem --- pkg/chartutil/create.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index c67cde04f..0363ab262 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -103,6 +103,7 @@ fullnameOverride: "" serviceAccount: # Specifies whether a service account should be created create: true + 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: @@ -302,6 +303,10 @@ metadata: name: {{ include ".serviceAccountName" . }} labels: {{ include ".labels" . | nindent 4 }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} {{- end -}} `