Skip to content

Commit eb05649

Browse files
templates: add topologySpreadConstraints
1 parent a4e31e0 commit eb05649

File tree

7 files changed

+32
-2
lines changed

7 files changed

+32
-2
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.20
5+
version: 0.7.30
66
appVersion: v0.8.2
77
keywords:
88
- quickwit

charts/quickwit/templates/control-plane-deployment.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,8 @@ spec:
124124
{{- if .Values.control_plane.runtimeClassName }}
125125
runtimeClassName: {{ .Values.control_plane.runtimeClassName | quote }}
126126
{{- end }}
127-
{{- end }}
127+
{{- with .Values.control_plane.topologySpreadConstraints }}
128+
topologySpreadConstraints:
129+
{{- toYaml . | nindent 8 }}
130+
{{ end }}
131+
{{- end }}

charts/quickwit/templates/indexer-statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ spec:
137137
{{- if .Values.indexer.runtimeClassName }}
138138
runtimeClassName: {{ .Values.indexer.runtimeClassName | quote }}
139139
{{- end }}
140+
{{- with .Values.indexer.topologySpreadConstraints }}
141+
topologySpreadConstraints:
142+
{{- toYaml . | nindent 8 }}
143+
{{ end }}
140144
{{- if .Values.indexer.persistentVolume.enabled }}
141145
volumeClaimTemplates:
142146
- metadata:

charts/quickwit/templates/janitor-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,8 @@ spec:
124124
{{- if .Values.janitor.runtimeClassName }}
125125
runtimeClassName: {{ .Values.janitor.runtimeClassName | quote }}
126126
{{- end }}
127+
{{- with .Values.janitor.topologySpreadConstraints }}
128+
topologySpreadConstraints:
129+
{{- toYaml . | nindent 8 }}
130+
{{ end }}
127131
{{- end }}

charts/quickwit/templates/metastore-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,7 @@ spec:
122122
{{- if .Values.metastore.runtimeClassName }}
123123
runtimeClassName: {{ .Values.metastore.runtimeClassName | quote }}
124124
{{- end }}
125+
{{- with .Values.metastore.topologySpreadConstraints }}
126+
topologySpreadConstraints:
127+
{{- toYaml . | nindent 8 }}
128+
{{ end }}

charts/quickwit/templates/searcher-statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ spec:
139139
{{- if .Values.searcher.runtimeClassName }}
140140
runtimeClassName: {{ .Values.searcher.runtimeClassName | quote }}
141141
{{- end }}
142+
{{- with .Values.searcher.topologySpreadConstraints }}
143+
topologySpreadConstraints:
144+
{{- toYaml . | nindent 8 }}
145+
{{ end }}
142146
{{- if .Values.searcher.persistentVolume.enabled }}
143147
volumeClaimTemplates:
144148
- metadata:

charts/quickwit/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ searcher:
150150

151151
runtimeClassName: ""
152152

153+
topologySpreadConstraints: {}
154+
153155
indexer:
154156
enabled: true
155157

@@ -247,6 +249,8 @@ indexer:
247249
# storage: "1Gi"
248250
# storageClass: ""
249251

252+
topologySpreadConstraints: {}
253+
250254
metastore:
251255
replicaCount: 1
252256

@@ -321,6 +325,8 @@ metastore:
321325

322326
runtimeClassName: ""
323327

328+
topologySpreadConstraints: {}
329+
324330
control_plane:
325331
enabled: true
326332

@@ -391,6 +397,8 @@ control_plane:
391397

392398
runtimeClassName: ""
393399

400+
topologySpreadConstraints: {}
401+
394402
janitor:
395403
# Enable Janitor service
396404
enabled: true
@@ -457,6 +465,8 @@ janitor:
457465

458466
runtimeClassName: ""
459467

468+
topologySpreadConstraints: {}
469+
460470
# Deploy jobs to bootstrap creation of indexes and sources for quickwit clusters
461471
bootstrap:
462472
# Enable bootstrap jobs

0 commit comments

Comments
 (0)