Skip to content

Commit

Permalink
Add global affinity and tolerations to jobs (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
guilload authored Jan 13, 2025
1 parent 35dd5e1 commit 050a222
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/quickwit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: quickwit
description: Sub-second search & analytics engine on cloud storage.
type: application
version: 0.7.8
version: 0.7.9
appVersion: "v0.8.2"
keywords:
- quickwit
Expand Down
7 changes: 3 additions & 4 deletions charts/quickwit/templates/job-create-indices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,13 @@ spec:
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $.Values.bootstrap.affinity }}
{{- with merge $.Values.affinity $.Values.bootstrap.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $.Values.bootstrap.tolerations }}
{{- $tolerations := append .Values.tolerations .Values.bootstrap.tolerations | compact | uniq }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- toYaml $tolerations | nindent 8 }}
{{- if $.Values.bootstrap.runtimeClassName }}
runtimeClassName: {{ $.Values.bootstrap.runtimeClassName | quote }}
{{- end }}
Expand Down
7 changes: 3 additions & 4 deletions charts/quickwit/templates/job-create-sources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,13 @@ spec:
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $.Values.bootstrap.affinity }}
{{- with merge $.Values.affinity $.Values.bootstrap.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $.Values.bootstrap.tolerations }}
{{- $tolerations := append .Values.tolerations .Values.bootstrap.tolerations | compact | uniq }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- toYaml $tolerations | nindent 8 }}
{{- if $.Values.bootstrap.runtimeClassName }}
runtimeClassName: {{ $.Values.bootstrap.runtimeClassName | quote }}
{{- end }}
Expand Down

0 comments on commit 050a222

Please sign in to comment.