fix: make config mountPaths configurable to resolve path mismatch
App looks for config at /etc/onlinesales/db/hadesV2/ but was only mounted at /etc/onlinesales/config/hades/. Now mountPaths is a list in values.yaml so both paths can be served. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6df483b0b0
commit
e7899972e2
@ -145,10 +145,12 @@ spec:
|
||||
{{- if or .Values.config.enabled .Values.allhosts.enabled }}
|
||||
volumeMounts:
|
||||
{{- if .Values.config.enabled }}
|
||||
{{- range .Values.config.mountPaths }}
|
||||
- name: config
|
||||
mountPath: /etc/onlinesales/config/hades
|
||||
mountPath: {{ . }}
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.allhosts.enabled }}
|
||||
- name: allhosts
|
||||
mountPath: /etc/onlinesales/config/allhosts/allhosts.tsv
|
||||
|
||||
@ -107,6 +107,9 @@ allhosts:
|
||||
# Configuration files for local development
|
||||
config:
|
||||
enabled: true
|
||||
mountPaths:
|
||||
- /etc/onlinesales/config/hades
|
||||
- /etc/onlinesales/db/hadesV2
|
||||
files:
|
||||
hades.cfg: |
|
||||
{
|
||||
|
||||
@ -170,6 +170,8 @@ dbInit:
|
||||
# ConfigMap for application configuration files
|
||||
config:
|
||||
enabled: true
|
||||
mountPaths:
|
||||
- /etc/onlinesales/config/hades
|
||||
# Add your configuration files here
|
||||
# files:
|
||||
# hades.cfg: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user