From 27e0d43cc24bf3b0f9fca7b5e308149cbda05017 Mon Sep 17 00:00:00 2001 From: Melvin GABALI Date: Thu, 15 Jan 2026 22:36:25 +0100 Subject: [PATCH] change timezone --- .../dev/templates/localtime-volume-patch.yaml | 24 +++++++++++++++++++ helm/homarr/dev/values.yaml | 14 +++++++++++ 2 files changed, 38 insertions(+) create mode 100644 helm/homarr/dev/templates/localtime-volume-patch.yaml diff --git a/helm/homarr/dev/templates/localtime-volume-patch.yaml b/helm/homarr/dev/templates/localtime-volume-patch.yaml new file mode 100644 index 0000000..491b1a4 --- /dev/null +++ b/helm/homarr/dev/templates/localtime-volume-patch.yaml @@ -0,0 +1,24 @@ +{{- if .Values.homarr.mountLocaltime }} +# Patch pour monter /etc/localtime depuis le nœud +# Ce template sera fusionné avec le Deployment créé par le chart Homarr +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ .Release.Name }} + namespace: {{ .Release.Namespace }} +spec: + template: + spec: + containers: + - name: homarr + volumeMounts: + - name: localtime + mountPath: /etc/localtime + readOnly: true + volumes: + - name: localtime + hostPath: + path: /etc/localtime + type: File +{{- end }} + diff --git a/helm/homarr/dev/values.yaml b/helm/homarr/dev/values.yaml index c541f52..3dfcdd1 100644 --- a/helm/homarr/dev/values.yaml +++ b/helm/homarr/dev/values.yaml @@ -37,6 +37,20 @@ homarr: # -- homarr-database optional volumeClaimName to target specific PV volumeClaimName: "" + # Monter /etc/localtime depuis le nœud pour synchroniser la timezone + mountLocaltime: true + # Volumes supplémentaires (si supporté par le chart) + extraVolumes: + - name: localtime + hostPath: + path: /etc/localtime + type: File + # Montages de volumes supplémentaires (si supporté par le chart) + extraVolumeMounts: + - name: localtime + mountPath: /etc/localtime + readOnly: true + # Configuration pour le chart homarr (référence au secret créé par le template) envSecrets: dbEncryption: