From f6262b2128dfed90f1e698f1c59d6b6ec105de4e Mon Sep 17 00:00:00 2001 From: Till Wegmueller Date: Sun, 22 Feb 2026 18:15:23 +0100 Subject: [PATCH] fix: Pass env vars to user-sync init container The init container was only getting RUST_LOG, not the main env block. This caused it to connect to the config file's database URL (SQLite) instead of the BARYCENTER__DATABASE__URL env var (PostgreSQL), resulting in migrations and user-sync running against the wrong database. Co-Authored-By: Claude Opus 4.6 --- deploy/helm/barycenter/templates/deployment.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/deploy/helm/barycenter/templates/deployment.yaml b/deploy/helm/barycenter/templates/deployment.yaml index 1fb1c69..b20116a 100644 --- a/deploy/helm/barycenter/templates/deployment.yaml +++ b/deploy/helm/barycenter/templates/deployment.yaml @@ -47,11 +47,9 @@ spec: - sync-users - --file - /secrets/{{ .Values.userSync.secretKey }} + {{- if .Values.env }} env: - - name: RUST_LOG - value: "info" - {{- if .Values.userSync.env }} - {{- toYaml .Values.userSync.env | nindent 8 }} + {{- toYaml .Values.env | nindent 8 }} {{- end }} volumeMounts: - name: config