From 349f76c610d1e9175eec12bbe0d1c620a442277c Mon Sep 17 00:00:00 2001 From: Paolo Mainardi Date: Thu, 18 Apr 2024 16:20:45 +0200 Subject: [PATCH] feat: add configurable timezone (#42) Co-authored-by: Tim Campbell --- dev-values.yaml | 3 +++ templates/configmap-env.yaml | 4 ++++ values.yaml | 3 +++ 3 files changed, 10 insertions(+) diff --git a/dev-values.yaml b/dev-values.yaml index 18b4095..86ca98a 100644 --- a/dev-values.yaml +++ b/dev-values.yaml @@ -28,3 +28,6 @@ elasticsearch: replicaCount: 1 ingest: replicaCount: 1 + +# -- Timezone for all pods unless overwritten +timezone: UTC diff --git a/templates/configmap-env.yaml b/templates/configmap-env.yaml index 526e29a..dfc6b56 100644 --- a/templates/configmap-env.yaml +++ b/templates/configmap-env.yaml @@ -383,3 +383,7 @@ data: {{- else }} CACHE_BUSTER_ENABLED: "false" {{- end }} + {{- with .Values.timezone }} + TZ: {{ . | quote }} + {{- end }} + \ No newline at end of file diff --git a/values.yaml b/values.yaml index bd560bc..45b43fd 100644 --- a/values.yaml +++ b/values.yaml @@ -599,6 +599,9 @@ tolerations: [] # -- Affinity for all pods unless overwritten affinity: {} +# -- Timezone for all pods unless overwritten +timezone: UTC + # -- Topology Spread Constraints for all pods unless overwritten # Please note that you need to use `matchLabelKeys` (Kubernetes 1.25+) if you # want to spread each deployment independently, or override topologySpreadConstraints