Skip to content

Commit 74940c2

Browse files
committed
platform-api: fix placement of tolerations and nodeSelector
1 parent e0078f6 commit 74940c2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

charts/platform-api/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v1
22
name: ushahidi-platform-api
3-
version: 0.0.1-alpha.34
3+
version: 0.0.1-alpha.35
44
icon: https://github.ushahidi.org/helm-charts/icon.png

charts/platform-api/templates/api-worker.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -295,14 +295,6 @@ spec:
295295
requests:
296296
cpu: {{ .Values.api.requests.cpu }}
297297
memory: {{ .Values.api.requests.memory }}
298-
{{- if .Values.api.tolerations }}
299-
tolerations:
300-
{{ toYaml .Values.api.tolerations | indent 10 }}
301-
{{- end }}
302-
{{- if .Values.api.nodeSelector }}
303-
nodeSelector:
304-
{{ toYaml .Values.api.nodeSelector | indent 10 }}
305-
{{- end }}
306298
{{- if or (.Values.config.dotenv) (.Values.config.dotenv_secret) (.Values.config.passport_keys_secret) }}
307299
volumes:
308300
{{- if .Values.config.dotenv }}
@@ -327,6 +319,14 @@ spec:
327319
{{- end }}
328320
{{- end }}
329321
terminationGracePeriodSeconds: 15
322+
{{- if .Values.api.tolerations }}
323+
tolerations:
324+
{{ toYaml .Values.api.tolerations | indent 8 }}
325+
{{- end }}
326+
{{- if .Values.api.nodeSelector }}
327+
nodeSelector:
328+
{{ toYaml .Values.api.nodeSelector | indent 8 }}
329+
{{- end }}
330330

331331
---
332332
apiVersion: v1

0 commit comments

Comments
 (0)