From e7899972e204ab67140078b596106fbabf103c22 Mon Sep 17 00:00:00 2001 From: Sagar Patil Date: Thu, 9 Apr 2026 16:31:56 +0530 Subject: [PATCH] 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) --- hades/templates/deployment.yaml | 4 +++- hades/values-local.yaml | 3 +++ hades/values.yaml | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/hades/templates/deployment.yaml b/hades/templates/deployment.yaml index 7d24160..5d34064 100644 --- a/hades/templates/deployment.yaml +++ b/hades/templates/deployment.yaml @@ -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 diff --git a/hades/values-local.yaml b/hades/values-local.yaml index f417d1b..802e6e7 100644 --- a/hades/values-local.yaml +++ b/hades/values-local.yaml @@ -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: | { diff --git a/hades/values.yaml b/hades/values.yaml index 6773fc1..a42bf04 100644 --- a/hades/values.yaml +++ b/hades/values.yaml @@ -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: |