From fdeeeb034b58cb4b84bed01a3124cb156e6f006c Mon Sep 17 00:00:00 2001 From: razbroc Date: Sun, 19 Oct 2025 14:01:06 +0300 Subject: [PATCH] fix: correct gpkgLocation formatting and add subPath for volume mount --- helm/templates/deployment.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index 530a7e7..704a0cc 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -10,7 +10,7 @@ {{- $fs := (include "common.fs.merged" .) | fromYaml }} {{- $configmapName := include "configmap.fullname" . }} {{- $deploymentName := include "deployment.fullname" . }} -{{ $gpkgLocation := (printf "%s%s" $fs.internalPvc.outputPath $fs.internalPvc.gpkgSubPath) }} +{{ $gpkgLocation := (printf "%s/%s" $fs.internalPvc.outputPath $fs.internalPvc.gpkgSubPath) }} apiVersion: apps/v1 kind: Deployment @@ -79,6 +79,9 @@ spec: volumeMounts: - name: internal-storage mountPath: {{ $fs.internalPvc.outputPath }} + {{- if $fs.internalPvc.gpkgSubPath }} + subPath: {{ $fs.internalPvc.gpkgSubPath }} + {{- end }} {{- if .Values.resources.enabled }} resources: {{- toYaml .Values.resources.value | nindent 12 }}