diff --git a/chart/kubedb/templates/deployment.yaml b/chart/kubedb/templates/deployment.yaml index 505370d3f..0bbff079f 100644 --- a/chart/kubedb/templates/deployment.yaml +++ b/chart/kubedb/templates/deployment.yaml @@ -22,9 +22,14 @@ spec: metadata: labels: {{- include "kubedb.labels" . | nindent 8 }} -{{- 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 "kubedb.serviceAccountName" . }}