Skip to content

Commit

Permalink
Merge pull request #95 from SocialGouv/chore-timezone-with-envvar
Browse files Browse the repository at this point in the history
chore: pass timezone with TZ envvar instead of host-path volume
  • Loading branch information
FJEANNOT authored Oct 8, 2024
2 parents 8d94c2c + 0d5ff91 commit 7ce842f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
11 changes: 3 additions & 8 deletions .kontinuous/env/preprod/templates/notification.cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ spec:
value: preproduction
- name: DATABASE_URL
value: "$(DATABASE_URL)"
- name: TZ
value: Europe/Paris
envFrom:
- configMapRef:
name: app-configmap
Expand All @@ -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
9 changes: 2 additions & 7 deletions .kontinuous/env/prod/templates/notification.cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ spec:
value: production
- name: DATABASE_URL
value: "$(DATABASE_URL)"
- name: TZ
value: Europe/Paris
envFrom:
- configMapRef:
name: app-configmap
Expand All @@ -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

0 comments on commit 7ce842f

Please sign in to comment.