Skip to content

Commit

Permalink
simplify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
katlim-br committed Jan 30, 2025
1 parent 6c22287 commit ba07b3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/quickwit/templates/indexer-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 and (hasKey .Values.indexer "replicaCount") (.Values.indexer.replicaCount) }}
{{- if .Values.indexer.replicaCount }}
replicas: {{ .Values.indexer.replicaCount }}
{{- end }}
serviceName: {{ include "quickwit.fullname" . }}-headless
Expand Down
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 and (hasKey .Values.searcher "replicaCount") (.Values.searcher.replicaCount) }}
{{- if .Values.searcher.replicaCount }}
replicas: {{ .Values.searcher.replicaCount }}
{{- end }}
serviceName: {{ include "quickwit.fullname" . }}-headless
Expand Down

0 comments on commit ba07b3f

Please sign in to comment.