diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index e1ee549f..b62c0152 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.mountPath $fs.internalPvc.gpkgSubPath) }} apiVersion: apps/v1 kind: Deployment @@ -78,11 +78,13 @@ spec: path: /liveness port: http volumeMounts: + {{- if $fs.internalPvc.enabled }} - name: internal-storage - mountPath: {{ $fs.internalPvc.outputPath }} + mountPath: {{ $fs.internalPvc.mountPath }} {{- if $fs.internalPvc.gpkgSubPath }} subPath: {{ $fs.internalPvc.gpkgSubPath }} {{- end }} + {{- end }} {{- if .Values.resources.enabled }} resources: {{- toYaml .Values.resources.value | nindent 12 }} diff --git a/helm/values.yaml b/helm/values.yaml index bed36b52..65bf2d68 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -40,7 +40,7 @@ storage: enabled: false name: "" gpkgSubPath: "" - outputPath: "" + mountPath: "" enabled: true environment: development