diff --git a/charts/quickwit/Chart.yaml b/charts/quickwit/Chart.yaml index 5174751..25c3d72 100644 --- a/charts/quickwit/Chart.yaml +++ b/charts/quickwit/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: quickwit description: Sub-second search & analytics engine on cloud storage. type: application -version: 0.7.7 +version: 0.7.8 appVersion: "v0.8.2" keywords: - quickwit diff --git a/charts/quickwit/templates/control-plane-deployment.yaml b/charts/quickwit/templates/control-plane-deployment.yaml index 38ff065..d8b47a7 100644 --- a/charts/quickwit/templates/control-plane-deployment.yaml +++ b/charts/quickwit/templates/control-plane-deployment.yaml @@ -113,14 +113,13 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.control_plane.affinity }} + {{- with merge .Values.affinity .Values.control_plane.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.control_plane.tolerations }} + {{- $tolerations := append .Values.tolerations .Values.control_plane.tolerations | compact | uniq }} tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} + {{- toYaml $tolerations | nindent 8 }} {{- if .Values.control_plane.runtimeClassName }} runtimeClassName: {{ .Values.control_plane.runtimeClassName | quote }} {{- end }} diff --git a/charts/quickwit/templates/indexer-statefulset.yaml b/charts/quickwit/templates/indexer-statefulset.yaml index d3adb76..63ce7f4 100644 --- a/charts/quickwit/templates/indexer-statefulset.yaml +++ b/charts/quickwit/templates/indexer-statefulset.yaml @@ -124,14 +124,13 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.indexer.affinity }} + {{- with merge .Values.affinity .Values.indexer.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.indexer.tolerations }} + {{- $tolerations := append .Values.tolerations .Values.indexer.tolerations | compact | uniq }} tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} + {{- toYaml $tolerations | nindent 8 }} {{- if .Values.indexer.runtimeClassName }} runtimeClassName: {{ .Values.indexer.runtimeClassName | quote }} {{- end }} diff --git a/charts/quickwit/templates/janitor-deployment.yaml b/charts/quickwit/templates/janitor-deployment.yaml index 28e766f..3c411d7 100644 --- a/charts/quickwit/templates/janitor-deployment.yaml +++ b/charts/quickwit/templates/janitor-deployment.yaml @@ -114,14 +114,13 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.janitor.affinity }} + {{- with merge .Values.affinity .Values.janitor.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.janitor.tolerations }} + {{- $tolerations := append .Values.tolerations .Values.janitor.tolerations | compact | uniq }} tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} + {{- toYaml $tolerations | nindent 8 }} {{- if .Values.janitor.runtimeClassName }} runtimeClassName: {{ .Values.janitor.runtimeClassName | quote }} {{- end }} diff --git a/charts/quickwit/templates/metastore-deployment.yaml b/charts/quickwit/templates/metastore-deployment.yaml index b4eb4dc..3e92dc5 100644 --- a/charts/quickwit/templates/metastore-deployment.yaml +++ b/charts/quickwit/templates/metastore-deployment.yaml @@ -112,14 +112,13 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.metastore.affinity }} + {{- with merge .Values.affinity .Values.metastore.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.metastore.tolerations }} + {{- $tolerations := append .Values.tolerations .Values.metastore.tolerations | compact | uniq }} tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} + {{- toYaml $tolerations | nindent 8 }} {{- if .Values.metastore.runtimeClassName }} runtimeClassName: {{ .Values.metastore.runtimeClassName | quote }} {{- end }} diff --git a/charts/quickwit/templates/searcher-statefulset.yaml b/charts/quickwit/templates/searcher-statefulset.yaml index febe512..953234e 100644 --- a/charts/quickwit/templates/searcher-statefulset.yaml +++ b/charts/quickwit/templates/searcher-statefulset.yaml @@ -123,14 +123,13 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.searcher.affinity }} + {{- with merge .Values.affinity .Values.searcher.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.searcher.tolerations }} + {{- $tolerations := append .Values.tolerations .Values.searcher.tolerations | compact | uniq }} tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} + {{- toYaml $tolerations | nindent 8 }} {{- if .Values.searcher.runtimeClassName }} runtimeClassName: {{ .Values.searcher.runtimeClassName | quote }} {{- end }} diff --git a/charts/quickwit/values.yaml b/charts/quickwit/values.yaml index 2b63435..a66ceea 100644 --- a/charts/quickwit/values.yaml +++ b/charts/quickwit/values.yaml @@ -52,6 +52,12 @@ configMaps: [] # - name: configmap1 # mountPath: /quickwit/configmaps/ +# Global tolerations applied to all deployments +tolerations: [] + +# Global affinity settings applied to all deployments +affinity: {} + searcher: replicaCount: 3