From ca02efc734a50b61bde1400a8353292dd493e874 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Mon, 18 Feb 2019 17:50:55 -0800 Subject: [PATCH] Pass Annotations to Operator PodTemplate (#1347) xref: https://github.com/appscodelabs/discuss/issues/126 Signed-off-by: Tamal Saha --- chart/voyager/templates/deployment.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chart/voyager/templates/deployment.yaml b/chart/voyager/templates/deployment.yaml index 2300cc937..803725d77 100644 --- a/chart/voyager/templates/deployment.yaml +++ b/chart/voyager/templates/deployment.yaml @@ -26,9 +26,14 @@ spec: labels: app: "{{ template "voyager.name" . }}" release: "{{ .Release.Name }}" -{{- if and .Values.criticalAddon (eq .Release.Namespace "kube-system") }} +{{- if or .Values.annotations (and .Values.criticalAddon (eq .Release.Namespace "kube-system")) }} annotations: +{{- if and .Values.criticalAddon (eq .Release.Namespace "kube-system") }} scheduler.alpha.kubernetes.io/critical-pod: '' +{{- end }} +{{- if .Values.annotations }} +{{ toYaml .Values.annotations | indent 8 }} +{{- end }} {{- end }} spec: serviceAccountName: {{ template "voyager.serviceAccountName" . }}