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" . }}