diff --git a/helm-charts/stage/templates/configmap.yaml b/helm-charts/stage/templates/configmap.yaml new file mode 100644 index 0000000..ad00bb1 --- /dev/null +++ b/helm-charts/stage/templates/configmap.yaml @@ -0,0 +1,8 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "stage.fullname" . }}-env +data: +{{- if .Values.ontime.reset }} + RESET_APP_STATE: true +{{- end }} \ No newline at end of file diff --git a/helm-charts/stage/templates/deployment.yaml b/helm-charts/stage/templates/deployment.yaml index 3f8f30f..a7278c8 100644 --- a/helm-charts/stage/templates/deployment.yaml +++ b/helm-charts/stage/templates/deployment.yaml @@ -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" diff --git a/helm-charts/stage/values.yaml b/helm-charts/stage/values.yaml index 6060cd9..a133d1f 100644 --- a/helm-charts/stage/values.yaml +++ b/helm-charts/stage/values.yaml @@ -6,6 +6,7 @@ replicaCount: 1 ontime: version: v4.1.0 + reset: false # prefix: "" # timezone: "UTC" # password: "password"