From a282bc961fb797b7384e601c60ad9ec8b87f65a9 Mon Sep 17 00:00:00 2001 From: everpcpc Date: Thu, 19 Oct 2023 16:31:12 +0800 Subject: [PATCH] feat(meta): support custom pod envs (#85) --- charts/databend-meta/Chart.yaml | 4 ++-- charts/databend-meta/templates/statefulset.yaml | 3 +++ charts/databend-meta/values.yaml | 2 ++ charts/databend-query/Chart.yaml | 2 +- charts/databend-query/templates/statefulset.yaml | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/charts/databend-meta/Chart.yaml b/charts/databend-meta/Chart.yaml index bb34bce..4847b95 100644 --- a/charts/databend-meta/Chart.yaml +++ b/charts/databend-meta/Chart.yaml @@ -26,13 +26,13 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.7.1 +version: 0.7.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v1.2.15-nightly" +appVersion: "v1.2.163-nightly" dependencies: - name: common diff --git a/charts/databend-meta/templates/statefulset.yaml b/charts/databend-meta/templates/statefulset.yaml index e761820..6b4d6c3 100644 --- a/charts/databend-meta/templates/statefulset.yaml +++ b/charts/databend-meta/templates/statefulset.yaml @@ -143,6 +143,9 @@ spec: valueFrom: fieldRef: fieldPath: status.podIP + {{- with .Values.envs }} + {{- toYaml . | nindent 12 }} + {{- end }} volumeMounts: {{- if .Values.persistence.enabled }} - name: data diff --git a/charts/databend-meta/values.yaml b/charts/databend-meta/values.yaml index 82523dc..1009b86 100644 --- a/charts/databend-meta/values.yaml +++ b/charts/databend-meta/values.yaml @@ -44,6 +44,8 @@ config: raft: dir: /data/databend-meta/raft +envs: [] + persistence: enabled: true storageClass: "" diff --git a/charts/databend-query/Chart.yaml b/charts/databend-query/Chart.yaml index af02b60..8b14763 100644 --- a/charts/databend-query/Chart.yaml +++ b/charts/databend-query/Chart.yaml @@ -25,7 +25,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.8.1 +version: 0.8.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/databend-query/templates/statefulset.yaml b/charts/databend-query/templates/statefulset.yaml index e2de436..b029145 100644 --- a/charts/databend-query/templates/statefulset.yaml +++ b/charts/databend-query/templates/statefulset.yaml @@ -96,7 +96,7 @@ spec: - name: QUERY_CLICKHOUSE_HTTP_HANDLER_PORT value: {{ .Values.service.ports.ckhttp |default 8124 | quote }} {{- with .Values.envs }} - {{- toYaml . | nindent 8 }} + {{- toYaml . | nindent 12 }} {{- end }} volumeMounts: - name: config