Skip to content

Commit

Permalink
Pass Annotations to Operator PodTemplate (#1347)
Browse files Browse the repository at this point in the history
xref: appscode/discuss#126

Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha committed Feb 19, 2019
1 parent 40a9d14 commit ca02efc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion chart/voyager/templates/deployment.yaml
Expand Up @@ -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" . }}
Expand Down

0 comments on commit ca02efc

Please sign in to comment.