mirror of
https://github.com/CloudNebulaProject/barycenter.git
synced 2026-04-10 13:10:42 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
parent
dd3dd4ef31
commit
f6262b2128
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue