From 5851fd4d2a576b849214a89f7f61e8903907bddb 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 Signed-off-by: Matheus Hunsche --- pkg/chartutil/create.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index f26ff47c8..ee414580f 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -113,6 +113,8 @@ serviceAccount: # If not set and create is true, a name is generated using the fullname template name: +podAnnotations: {} + podSecurityContext: {} # fsGroup: 2000 @@ -250,6 +252,10 @@ spec: {{- include ".selectorLabels" . | nindent 6 }} template: metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} labels: {{- include ".selectorLabels" . | nindent 8 }} spec: