|
18 | 18 | metadata:
|
19 | 19 | annotations:
|
20 | 20 | checksum/secrets.yaml: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
|
21 |
| - {{- if .Values.web.podAnnotations }} |
22 |
| -{{ toYaml .Values.web.podAnnotations | indent 8 }} |
| 21 | + {{- if .Values.events.podAnnotations }} |
| 22 | +{{ toYaml .Values.events.podAnnotations | indent 8 }} |
23 | 23 | {{- end }}
|
24 | 24 | labels:
|
25 | 25 | app: {{ template "posthog.fullname" . }}
|
|
34 | 34 | spec:
|
35 | 35 | terminationGracePeriodSeconds: {{ include "snippet.web-deployments.terminationGracePeriodSeconds" . }}
|
36 | 36 | serviceAccountName: {{ template "posthog.serviceAccountName" . }}
|
37 |
| - {{- if .Values.web.affinity }} |
38 |
| - affinity: |
39 |
| -{{ toYaml .Values.web.affinity | indent 8 }} |
40 |
| - {{- end }} |
41 |
| - {{- if .Values.web.nodeSelector }} |
42 |
| - nodeSelector: |
43 |
| -{{ toYaml .Values.web.nodeSelector | indent 8 }} |
44 |
| - {{- end }} |
45 |
| - {{- if .Values.web.tolerations }} |
46 |
| - tolerations: |
47 |
| -{{ toYaml .Values.web.tolerations | indent 8 }} |
48 |
| - {{- end }} |
| 37 | + affinity: {{ toYaml (merge .Values.events.affinity .Values.affinity) | nindent 8 }} |
| 38 | + nodeSelector: {{ toYaml (merge .Values.events.nodeSelector .Values.nodeSelector) | nindent 8 }} |
| 39 | + tolerations: {{ toYaml (coalesce .Values.events.tolerations .Values.tolerations) | nindent 8 }} |
49 | 40 | {{- if .Values.web.schedulerName }}
|
50 | 41 | schedulerName: "{{ .Values.web.schedulerName }}"
|
51 | 42 | {{- end }}
|
@@ -141,7 +132,7 @@ spec:
|
141 | 132 | timeoutSeconds: {{ .Values.web.startupProbe.timeoutSeconds }}
|
142 | 133 | resources:
|
143 | 134 | {{ if not .Values.events.resources }}
|
144 |
| -{{ toYaml .Values.web.resources | indent 12 }} |
| 135 | +{{ toYaml .Values.events.resources | indent 12 }} |
145 | 136 | {{ else }}
|
146 | 137 | {{ toYaml .Values.events.resources | indent 12 }}
|
147 | 138 | {{ end }}
|
|
0 commit comments