fix: set config path for Helm chart containers

Add --config flag to both main container and user-sync init container
to explicitly specify the mounted config file path at /app/config/config.toml.
This fixes deserialization errors when the application couldn't find the
config file in the default working directory.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Till Wegmueller 2025-12-02 14:23:52 +01:00
parent e8a060d7c3
commit be4e0f8e71
No known key found for this signature in database

View file

@ -39,6 +39,8 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
command: command:
- barycenter - barycenter
- -c
- /app/config/config.toml
- sync-users - sync-users
- --file - --file
- /secrets/{{ .Values.userSync.secretKey }} - /secrets/{{ .Values.userSync.secretKey }}
@ -65,6 +67,7 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
args: ["-c", "/app/config/config.toml"]
ports: ports:
- name: http - name: http
containerPort: {{ .Values.config.server.port }} containerPort: {{ .Values.config.server.port }}