Skip to content

Commit

Permalink
[BUG] replicaCount must accept zero (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
katlim-br authored Feb 3, 2025
1 parent 965cce7 commit d49150c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 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.12
version: 0.7.13
appVersion: "v0.8.2"
keywords:
- quickwit
Expand Down
4 changes: 3 additions & 1 deletion charts/quickwit/templates/indexer-statefulset.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.indexer.enabled }}
apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand All @@ -12,7 +13,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.indexer.replicaCount }}
{{- if hasKey .Values.indexer "replicaCount" }}
replicas: {{ .Values.indexer.replicaCount }}
{{- end }}
serviceName: {{ include "quickwit.fullname" . }}-headless
Expand Down Expand Up @@ -150,3 +151,4 @@ spec:
storageClassName: "{{ .Values.indexer.persistentVolume.storageClass }}"
{{- end }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/quickwit/templates/searcher-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.searcher.replicaCount }}
{{- if hasKey .Values.searcher "replicaCount" }}
replicas: {{ .Values.searcher.replicaCount }}
{{- end }}
serviceName: {{ include "quickwit.fullname" . }}-headless
Expand Down
2 changes: 2 additions & 0 deletions charts/quickwit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ searcher:
runtimeClassName: ""

indexer:
enabled: true

replicaCount: 1

# Extra env for indexer
Expand Down

0 comments on commit d49150c

Please sign in to comment.