diff --git a/charts/quickwit/Chart.yaml b/charts/quickwit/Chart.yaml index 729f8b5..6871717 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.1 +version: 0.7.2 appVersion: "v0.8.2" keywords: - quickwit diff --git a/charts/quickwit/templates/indexer-statefulset.yaml b/charts/quickwit/templates/indexer-statefulset.yaml index 52b1e09..1e3506c 100644 --- a/charts/quickwit/templates/indexer-statefulset.yaml +++ b/charts/quickwit/templates/indexer-statefulset.yaml @@ -128,6 +128,10 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.indexer.lifecycleHooks }} + lifecycle: + {{- toYaml . | nindent 8 }} + {{- end}} {{- if .Values.indexer.persistentVolume.enabled }} volumeClaimTemplates: - metadata: diff --git a/charts/quickwit/templates/searcher-statefulset.yaml b/charts/quickwit/templates/searcher-statefulset.yaml index 0677b33..e074d0c 100644 --- a/charts/quickwit/templates/searcher-statefulset.yaml +++ b/charts/quickwit/templates/searcher-statefulset.yaml @@ -127,6 +127,10 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.searcher.lifecycleHooks }} + lifecycle: + {{- toYaml . | nindent 8 }} + {{- end}} {{- if .Values.searcher.persistentVolume.enabled }} volumeClaimTemplates: - metadata: diff --git a/charts/quickwit/values.yaml b/charts/quickwit/values.yaml index d27b912..dd24e67 100644 --- a/charts/quickwit/values.yaml +++ b/charts/quickwit/values.yaml @@ -105,6 +105,14 @@ searcher: path: /health/readyz port: rest + lifecycleHooks: {} + # preStop: + # exec: + # command: + # - /bin/sh + # - -c + # - sleep 30 + # Override args for starting container args: [] @@ -196,6 +204,14 @@ indexer: affinity: {} + lifecycleHooks: {} + # preStop: + # exec: + # command: + # - /bin/sh + # - -c + # - sleep 30 + # Long grace period is recommended to wait for all index commit_timeout_secs and splits to be published # See https://quickwit.io/docs/configuration/index-config#indexing-settings terminationGracePeriodSeconds: 120