From c4fc8b7de84122e4f7f19833655e0a1aae74ba81 Mon Sep 17 00:00:00 2001 From: Naseem Date: Sun, 5 Apr 2020 12:14:01 -0400 Subject: [PATCH] feat: add pod annotations With the rise of sidecar injectors, pod annotations configuration is becoming more and more important. Signed-off-by: Naseem --- pkg/chartutil/create.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index b088f20ce..8620f46ad 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -111,6 +111,8 @@ serviceAccount: # If not set and create is true, a name is generated using the fullname template name: +podAnnotations: {} + podSecurityContext: {} # fsGroup: 2000 @@ -248,6 +250,10 @@ spec: {{- include ".selectorLabels" . | nindent 6 }} template: metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} labels: {{- include ".selectorLabels" . | nindent 8 }} spec: