From d6e5f1fbc9eb19c42b074669adb79df140420ca0 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Wed, 12 Nov 2025 20:29:03 -0600 Subject: [PATCH] add configfor dynamic env setup --- helm-charts/stage/templates/configmap.yaml | 8 ++++++++ helm-charts/stage/templates/deployment.yaml | 3 +++ helm-charts/stage/values.yaml | 1 + 3 files changed, 12 insertions(+) create mode 100644 helm-charts/stage/templates/configmap.yaml 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"