Skip to content

Commit 7b5ce56

Browse files
authored
Set default cluster ID via env var only if not set in node config (#147)
1 parent d91faed commit 7b5ce56

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

charts/quickwit/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: quickwit
33
description: Sub-second search & analytics engine on cloud storage.
44
type: application
5-
version: 0.7.19
5+
version: 0.7.20
66
appVersion: v0.8.2
77
keywords:
88
- quickwit

charts/quickwit/templates/_helpers.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,10 @@ Quickwit environment
145145
fieldPath: status.podIP
146146
- name: QW_CONFIG
147147
value: {{ .Values.configLocation }}
148+
{{- if not .Values.config.cluster_id }}
148149
- name: QW_CLUSTER_ID
149150
value: {{ .Release.Namespace }}-{{ include "quickwit.fullname" . }}
151+
{{- end }}
150152
- name: QW_NODE_ID
151153
value: "$(POD_NAME)"
152154
- name: QW_PEER_SEEDS

charts/quickwit/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,14 +510,16 @@ bootstrap:
510510
# extraVolumeMounts -- Additional volumes to mount into bootstrap containers (not the init containers).
511511
extraVolumeMounts: []
512512

513-
# Quickwit configuration
513+
# Node configuration
514514
# Warning: This config is writed directly into a configMap
515515
# to avoid passing sensitive value you can pass environment variables.
516516
# https://quickwit.io/docs/configuration/node-config#using-environment-variables-in-the-configuration
517517
configLocation: /quickwit/node.yaml
518518

519519
config:
520520
version: 0.8
521+
# Override the cluster ID generated by the chart here.
522+
# cluster_id: my-cluster
521523
listen_address: 0.0.0.0
522524
gossip_listen_port: 7282
523525
data_dir: /quickwit/qwdata

0 commit comments

Comments
 (0)