From 82b0e84cef79502ca7f570839e280acdff5d8547 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Mon, 27 Oct 2025 19:32:18 -0500 Subject: [PATCH] add TZ and IS_CLOUD env variables --- config/manager/kustomization.yaml | 2 +- helm-charts/stage/templates/deployment.yaml | 10 +++++++++- helm-charts/stage/values.yaml | 4 +++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index 416c1d4..6ad8838 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -5,4 +5,4 @@ kind: Kustomization images: - name: controller newName: git.jwetzell.com/jwetzell/ontime-operator - newTag: v1.1.0 + newTag: v1.2.0 diff --git a/helm-charts/stage/templates/deployment.yaml b/helm-charts/stage/templates/deployment.yaml index 2d5fdbd..f05d0d6 100644 --- a/helm-charts/stage/templates/deployment.yaml +++ b/helm-charts/stage/templates/deployment.yaml @@ -35,12 +35,20 @@ spec: image: "{{ .Values.image.repository }}:{{ .Values.ontime.version | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} env: + - name: IS_CLOUD + value: "true" + {{- with .Values.ontime.prefix }} - name: ROUTER_PREFIX - value: {{ .Values.ontime.prefix | quote}} + value: {{ . | quote }} + {{- end }} {{- with .Values.ontime.password }} - name: SESSION_PASSWORD value: {{ . | quote }} {{- end }} + {{- with .Values.ontime.timezone }} + - name: TZ + value: {{ . | quote }} + {{- end }} ports: - name: http containerPort: {{ .Values.service.port }} diff --git a/helm-charts/stage/values.yaml b/helm-charts/stage/values.yaml index 0572522..eca0688 100644 --- a/helm-charts/stage/values.yaml +++ b/helm-charts/stage/values.yaml @@ -3,9 +3,11 @@ # This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/ replicaCount: 1 + ontime: version: 4.0.2 - prefix: "" + # prefix: "" + # timezone: "UTC" # password: "password" # This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/