Skip to content

Commit df55299

Browse files
committed
support extraEnvs
1 parent 2c45ff1 commit df55299

4 files changed

Lines changed: 18 additions & 2 deletions

File tree

charts/cmdb/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.9
18+
version: 0.1.10
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/cmdb/templates/api/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ spec:
7777
envFrom:
7878
- configMapRef:
7979
name: {{ include "cmdb.fullname" . }}-api
80+
{{- with .Values.api.extraEnvs }}
81+
env:
82+
{{- . | toYaml | nindent 12 }}
83+
{{- end }}
8084
{{- with .Values.api.volumes }}
8185
volumes:
8286
{{- toYaml . | nindent 8 }}

charts/cmdb/templates/ui/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ spec:
4444
env:
4545
- name: TZ
4646
value: "Asia/Shanghai"
47+
{{- with .Values.ui.extraEnvs }}
48+
{{- . | toYaml | nindent 12 }}
49+
{{- end }}
4750
resources:
4851
{{- toYaml .Values.ui.resources | nindent 12 }}
4952
volumeMounts:

charts/cmdb/values.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ api:
4747
# Overrides the image tag whose default is the chart appVersion.
4848
tag: "2.4.5"
4949

50+
extraEnvs: []
51+
# extraEnvs:
52+
# - name: MY_BAR
53+
# value: "my_bar"
5054
mysql:
5155
builtIn: true
5256
host: "mysql"
@@ -239,4 +243,9 @@ ui:
239243

240244
tolerations: []
241245

242-
affinity: {}
246+
affinity: {}
247+
248+
extraEnvs: []
249+
# extraEnvs:
250+
# - name: MY_BAR
251+
# value: "my_bar"

0 commit comments

Comments
 (0)