Skip to content

Commit 050a222

Browse files
authored
Add global affinity and tolerations to jobs (#119)
1 parent 35dd5e1 commit 050a222

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

charts/quickwit/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: quickwit
33
description: Sub-second search & analytics engine on cloud storage.
44
type: application
5-
version: 0.7.8
5+
version: 0.7.9
66
appVersion: "v0.8.2"
77
keywords:
88
- quickwit

charts/quickwit/templates/job-create-indices.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,13 @@ spec:
9090
nodeSelector:
9191
{{- toYaml . | nindent 8 }}
9292
{{- end }}
93-
{{- with $.Values.bootstrap.affinity }}
93+
{{- with merge $.Values.affinity $.Values.bootstrap.affinity }}
9494
affinity:
9595
{{- toYaml . | nindent 8 }}
9696
{{- end }}
97-
{{- with $.Values.bootstrap.tolerations }}
97+
{{- $tolerations := append .Values.tolerations .Values.bootstrap.tolerations | compact | uniq }}
9898
tolerations:
99-
{{- toYaml . | nindent 8 }}
100-
{{- end }}
99+
{{- toYaml $tolerations | nindent 8 }}
101100
{{- if $.Values.bootstrap.runtimeClassName }}
102101
runtimeClassName: {{ $.Values.bootstrap.runtimeClassName | quote }}
103102
{{- end }}

charts/quickwit/templates/job-create-sources.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,13 @@ spec:
9292
nodeSelector:
9393
{{- toYaml . | nindent 8 }}
9494
{{- end }}
95-
{{- with $.Values.bootstrap.affinity }}
95+
{{- with merge $.Values.affinity $.Values.bootstrap.affinity }}
9696
affinity:
9797
{{- toYaml . | nindent 8 }}
9898
{{- end }}
99-
{{- with $.Values.bootstrap.tolerations }}
99+
{{- $tolerations := append .Values.tolerations .Values.bootstrap.tolerations | compact | uniq }}
100100
tolerations:
101-
{{- toYaml . | nindent 8 }}
102-
{{- end }}
101+
{{- toYaml $tolerations | nindent 8 }}
103102
{{- if $.Values.bootstrap.runtimeClassName }}
104103
runtimeClassName: {{ $.Values.bootstrap.runtimeClassName | quote }}
105104
{{- end }}

0 commit comments

Comments
 (0)