Skip to content

Commit

Permalink
Fix lifecycle container spec (#105)
Browse files Browse the repository at this point in the history
* Move lifecycle hooks to spec.template.spec.containers

* Fixing template
  • Loading branch information
fredsig authored Oct 16, 2024
1 parent 24ad2b8 commit 52524ac
Show file tree
Hide file tree
Showing 3 changed files with 9 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.3
version: 0.7.4
appVersion: "v0.8.2"
keywords:
- quickwit
Expand Down
8 changes: 4 additions & 4 deletions charts/quickwit/templates/indexer-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ spec:
{{- end }}
resources:
{{- toYaml .Values.indexer.resources | nindent 12 }}
{{- if .Values.indexer.lifecycleHooks }}
lifecycle:
{{- toYaml .Values.indexer.lifecycleHooks | nindent 12 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.indexer.terminationGracePeriodSeconds }}
volumes:
- name: config
Expand Down Expand Up @@ -128,10 +132,6 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.indexer.lifecycleHooks }}
lifecycle:
{{- toYaml . | nindent 8 }}
{{- end}}
{{- if .Values.indexer.runtimeClassName }}
runtimeClassName: {{ .Values.indexer.runtimeClassName | quote }}
{{- end }}
Expand Down
8 changes: 4 additions & 4 deletions charts/quickwit/templates/searcher-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ spec:
{{- end }}
resources:
{{- toYaml .Values.searcher.resources | nindent 14 }}
{{- if .Values.searcher.lifecycleHooks }}
lifecycle:
{{- toYaml .Values.searcher.lifecycleHooks | nindent 14 }}
{{- end }}
volumes:
- name: config
configMap:
Expand Down Expand Up @@ -127,10 +131,6 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.searcher.lifecycleHooks }}
lifecycle:
{{- toYaml . | nindent 8 }}
{{- end}}
{{- if .Values.searcher.runtimeClassName }}
runtimeClassName: {{ .Values.searcher.runtimeClassName | quote }}
{{- end }}
Expand Down

0 comments on commit 52524ac

Please sign in to comment.