From 7ed4d19697d88915f720a87cda4b34454ecf2716 Mon Sep 17 00:00:00 2001 From: fmassot Date: Sat, 23 Dec 2023 21:45:01 +0100 Subject: [PATCH 1/4] Add num_connections to postgres configuration. --- charts/quickwit/Chart.yaml | 2 +- charts/quickwit/templates/configmap.yaml | 5 +++++ charts/quickwit/values.yaml | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/quickwit/Chart.yaml b/charts/quickwit/Chart.yaml index a084cc8..5a87efe 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.5.2 +version: 0.5.3 appVersion: "v0.6.4" keywords: - quickwit diff --git a/charts/quickwit/templates/configmap.yaml b/charts/quickwit/templates/configmap.yaml index 5fd6d5c..9f2fff9 100644 --- a/charts/quickwit/templates/configmap.yaml +++ b/charts/quickwit/templates/configmap.yaml @@ -42,3 +42,8 @@ data: jaeger: {{- toYaml . | nindent 6 }} {{- end }} + {{- if (.Values.config.postgres).max_num_connections }} + metastore: + postgres: + max_num_connections: .Values.config.postgres.max_num_connections + {{- end }} diff --git a/charts/quickwit/values.yaml b/charts/quickwit/values.yaml index d9adf9c..f735f9d 100644 --- a/charts/quickwit/values.yaml +++ b/charts/quickwit/values.yaml @@ -312,6 +312,7 @@ config: # database: metastore # username: quickwit # password: "" + # max_num_connections: 50 s3: {} # endpoint: "https://s3.eu-west-1.amazonaws.com" From b6cfcc9dca43534c6bdb1f080f081653b63ec210 Mon Sep 17 00:00:00 2001 From: fmassot Date: Sat, 23 Dec 2023 21:56:10 +0100 Subject: [PATCH 2/4] Fix postgres num connection config. --- charts/quickwit/templates/configmap.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/quickwit/templates/configmap.yaml b/charts/quickwit/templates/configmap.yaml index 9f2fff9..32e30d1 100644 --- a/charts/quickwit/templates/configmap.yaml +++ b/charts/quickwit/templates/configmap.yaml @@ -45,5 +45,5 @@ data: {{- if (.Values.config.postgres).max_num_connections }} metastore: postgres: - max_num_connections: .Values.config.postgres.max_num_connections + max_num_connections: {{ .Values.config.postgres.max_num_connections }} {{- end }} From d0f0ec0d72d7f78096c916940e0c413f03832287 Mon Sep 17 00:00:00 2001 From: fmassot Date: Sat, 6 Jan 2024 00:36:15 +0100 Subject: [PATCH 3/4] Fix storage config and update for 0.7. --- charts/quickwit/Chart.yaml | 4 ++-- charts/quickwit/templates/configmap.yaml | 10 +++++----- charts/quickwit/values.yaml | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/charts/quickwit/Chart.yaml b/charts/quickwit/Chart.yaml index 5a87efe..59aede5 100644 --- a/charts/quickwit/Chart.yaml +++ b/charts/quickwit/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: quickwit description: Sub-second search & analytics engine on cloud storage. type: application -version: 0.5.3 -appVersion: "v0.6.4" +version: 0.5.4 +appVersion: "v0.7.0" keywords: - quickwit - search diff --git a/charts/quickwit/templates/configmap.yaml b/charts/quickwit/templates/configmap.yaml index 32e30d1..bc00da5 100644 --- a/charts/quickwit/templates/configmap.yaml +++ b/charts/quickwit/templates/configmap.yaml @@ -6,7 +6,7 @@ metadata: {{- include "quickwit.labels" . | nindent 4 }} data: node.yaml: |- - version: 0.6 + version: 0.7 listen_address: 0.0.0.0 gossip_listen_port: 7282 data_dir: /quickwit/qwdata @@ -19,13 +19,13 @@ data: {{- $new_storage := . | deepCopy }} {{- /* s3 access_key_id and secret_access_key are already set by env variables */}} {{ if .s3 }} - {{- $_ := unset $new_storage.s3 "access_key_id" }} - {{- $_ := unset $new_storage.s3 "secret_access_key" }} + {{- $_ := set $new_storage.s3 "access_key_id" "${AWS_ACCESS_KEY_ID}" }} + {{- $_ := set $new_storage.s3 "secret_access_key" "${AWS_SECRET_ACCESS_KEY}" }} {{- end }} {{- /* azure account and access_key are already set by env variables */}} {{ if .azure }} - {{- $_ := unset $new_storage.azure "account" }} - {{- $_ := unset $new_storage.azure "access_key" }} + {{- $_ := set $new_storage.azure "account" "${QW_AZURE_STORAGE_ACCOUNT}" }} + {{- $_ := set $new_storage.azure "access_key" "${QW_AZURE_STORAGE_ACCESS_KEY}" }} {{- end }} storage: {{- toYaml $new_storage | nindent 6 }} diff --git a/charts/quickwit/values.yaml b/charts/quickwit/values.yaml index f735f9d..71ea84d 100644 --- a/charts/quickwit/values.yaml +++ b/charts/quickwit/values.yaml @@ -6,7 +6,7 @@ image: repository: quickwit/quickwit pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - # tag: v0.6.1 + # tag: v0.7.0 imagePullSecrets: [] nameOverride: "" From cc39deb6c34bc5430f4bc573f1dafd056bea35d1 Mon Sep 17 00:00:00 2001 From: fmassot Date: Sat, 6 Jan 2024 00:38:07 +0100 Subject: [PATCH 4/4] Fix chart version. --- charts/quickwit/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/quickwit/Chart.yaml b/charts/quickwit/Chart.yaml index 59aede5..3784d76 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.5.4 +version: 0.5.3 appVersion: "v0.7.0" keywords: - quickwit