mirror of
https://github.com/CloudNebulaProject/barycenter.git
synced 2026-04-10 13:10:42 +00:00
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:
parent
e8a060d7c3
commit
be4e0f8e71
1 changed files with 3 additions and 0 deletions
|
|
@ -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 }}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue