Skip to content

Commit

Permalink
feat(meta): support custom pod envs
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc committed Oct 19, 2023
1 parent 4f57672 commit a1c0d4e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/databend-meta/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions charts/databend-meta/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
{{- with .Values.envs }}
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
{{- if .Values.persistence.enabled }}
- name: data
Expand Down
2 changes: 2 additions & 0 deletions charts/databend-meta/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ config:
raft:
dir: /data/databend-meta/raft

envs: []

persistence:
enabled: true
storageClass: ""
Expand Down
2 changes: 1 addition & 1 deletion charts/databend-query/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion charts/databend-query/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1c0d4e

Please sign in to comment.