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:
Sagar Patil 2026-04-09 16:31:56 +05:30
parent 6df483b0b0
commit e7899972e2
3 changed files with 8 additions and 1 deletions

View File

@ -145,10 +145,12 @@ spec:
{{- if or .Values.config.enabled .Values.allhosts.enabled }} {{- if or .Values.config.enabled .Values.allhosts.enabled }}
volumeMounts: volumeMounts:
{{- if .Values.config.enabled }} {{- if .Values.config.enabled }}
{{- range .Values.config.mountPaths }}
- name: config - name: config
mountPath: /etc/onlinesales/config/hades mountPath: {{ . }}
readOnly: true readOnly: true
{{- end }} {{- end }}
{{- end }}
{{- if .Values.allhosts.enabled }} {{- if .Values.allhosts.enabled }}
- name: allhosts - name: allhosts
mountPath: /etc/onlinesales/config/allhosts/allhosts.tsv mountPath: /etc/onlinesales/config/allhosts/allhosts.tsv

View File

@ -107,6 +107,9 @@ allhosts:
# Configuration files for local development # Configuration files for local development
config: config:
enabled: true enabled: true
mountPaths:
- /etc/onlinesales/config/hades
- /etc/onlinesales/db/hadesV2
files: files:
hades.cfg: | hades.cfg: |
{ {

View File

@ -170,6 +170,8 @@ dbInit:
# ConfigMap for application configuration files # ConfigMap for application configuration files
config: config:
enabled: true enabled: true
mountPaths:
- /etc/onlinesales/config/hades
# Add your configuration files here # Add your configuration files here
# files: # files:
# hades.cfg: | # hades.cfg: |