Skip to content

Commit

Permalink
templates: add topologySpreadConstraints
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-fidel-wmx committed Nov 13, 2024
1 parent dcc9e6d commit b789a69
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/quickwit/templates/control-plane-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,7 @@ spec:
{{- if .Values.control_plane.runtimeClassName }}
runtimeClassName: {{ .Values.control_plane.runtimeClassName | quote }}
{{- end }}
{{- with .Values.control_plane.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{ end }}
4 changes: 4 additions & 0 deletions charts/quickwit/templates/indexer-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ spec:
{{- if .Values.indexer.runtimeClassName }}
runtimeClassName: {{ .Values.indexer.runtimeClassName | quote }}
{{- end }}
{{- with .Values.indexer.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{ end }}
{{- if .Values.indexer.persistentVolume.enabled }}
volumeClaimTemplates:
- metadata:
Expand Down
4 changes: 4 additions & 0 deletions charts/quickwit/templates/janitor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,8 @@ spec:
{{- if .Values.janitor.runtimeClassName }}
runtimeClassName: {{ .Values.janitor.runtimeClassName | quote }}
{{- end }}
{{- with .Values.janitor.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{ end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/quickwit/templates/metastore-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,7 @@ spec:
{{- if .Values.metastore.runtimeClassName }}
runtimeClassName: {{ .Values.metastore.runtimeClassName | quote }}
{{- end }}
{{- with .Values.metastore.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{ end }}
4 changes: 4 additions & 0 deletions charts/quickwit/templates/searcher-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ spec:
{{- if .Values.searcher.runtimeClassName }}
runtimeClassName: {{ .Values.searcher.runtimeClassName | quote }}
{{- end }}
{{- with .Values.searcher.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{ end }}
{{- if .Values.searcher.persistentVolume.enabled }}
volumeClaimTemplates:
- metadata:
Expand Down

0 comments on commit b789a69

Please sign in to comment.