From a44760d4e0baf337ef876f87a8931acb1309bd65 Mon Sep 17 00:00:00 2001 From: ferreol Date: Wed, 2 Oct 2024 15:19:55 +0200 Subject: [PATCH] chore: pass timezone with TZ envvar instead of host-path volume --- .../env/preprod/templates/notification.cronjob.yaml | 11 +++-------- .../env/prod/templates/notification.cronjob.yaml | 9 ++------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/.kontinuous/env/preprod/templates/notification.cronjob.yaml b/.kontinuous/env/preprod/templates/notification.cronjob.yaml index 7e290ab4..8eb752b0 100644 --- a/.kontinuous/env/preprod/templates/notification.cronjob.yaml +++ b/.kontinuous/env/preprod/templates/notification.cronjob.yaml @@ -33,6 +33,8 @@ spec: value: preproduction - name: DATABASE_URL value: "$(DATABASE_URL)" + - name: TZ + value: Europe/Paris envFrom: - configMapRef: name: app-configmap @@ -41,11 +43,4 @@ spec: - secretRef: name: app-sealed-secret - secretRef: - name: carte-jeune-engage-dev-app-access-key - volumeMounts: - - name: tz-paris - mountPath: /etc/localtime - volumes: - - name: tz-paris - hostPath: - path: /usr/share/zoneinfo/Europe/Paris + name: carte-jeune-engage-dev-app-access-key \ No newline at end of file diff --git a/.kontinuous/env/prod/templates/notification.cronjob.yaml b/.kontinuous/env/prod/templates/notification.cronjob.yaml index f3a1ef2a..73d3cc9b 100644 --- a/.kontinuous/env/prod/templates/notification.cronjob.yaml +++ b/.kontinuous/env/prod/templates/notification.cronjob.yaml @@ -33,6 +33,8 @@ spec: value: production - name: DATABASE_URL value: "$(DATABASE_URL)" + - name: TZ + value: Europe/Paris envFrom: - configMapRef: name: app-configmap @@ -42,10 +44,3 @@ spec: name: app-sealed-secret - secretRef: name: carte-jeune-engage-prod-app-access-key - volumeMounts: - - name: tz-paris - mountPath: /etc/localtime - volumes: - - name: tz-paris - hostPath: - path: /usr/share/zoneinfo/Europe/Paris