add configfor dynamic env setup
This commit is contained in:
8
helm-charts/stage/templates/configmap.yaml
Normal file
8
helm-charts/stage/templates/configmap.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ include "stage.fullname" . }}-env
|
||||
data:
|
||||
{{- if .Values.ontime.reset }}
|
||||
RESET_APP_STATE: true
|
||||
{{- end }}
|
||||
@@ -34,6 +34,9 @@ spec:
|
||||
{{- end }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.ontime.version | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
envFrom:
|
||||
configMapRef:
|
||||
name: {{ include "stage.fullname" . }}-env
|
||||
env:
|
||||
- name: IS_CLOUD
|
||||
value: "true"
|
||||
|
||||
@@ -6,6 +6,7 @@ replicaCount: 1
|
||||
|
||||
ontime:
|
||||
version: v4.1.0
|
||||
reset: false
|
||||
# prefix: ""
|
||||
# timezone: "UTC"
|
||||
# password: "password"
|
||||
|
||||
Reference in New Issue
Block a user