Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
{{- $s3 := (include "common.s3.merged" .) | fromYaml }}
{{- $fs := (include "common.fs.merged" .) | fromYaml }}
{{- $storage := (include "common.storage.merged" .) | fromYaml }}
{{ $gpkgPath := (printf "%s%s" "/app/tiles_outputs/" $fs.internalPvc.gpkgSubPath) }}
{{ $tilePath := (printf "%s%s" "/app/tiles_outputs/" $fs.internalPvc.tilesSubPath) }}
{{ $sources := (ternary $tilePath (printf "%s%s" "/layerSources/" $fs.ingestionSourcePvc.subPath) .Values.isExporter ) }}
{{ $gpkgPath := (printf "%s%s" $fs.internalPvc.mountPath $fs.ingestionSourcePvc.gpkgSubPath) }}
{{ $tilePath := (printf "%s%s" $fs.internalPvc.mountPath $fs.internalPvc.tilesSubPath) }}
{{ $sources := (ternary $tilePath (printf "%s%s" $fs.ingestionSourcePvc.mountPath $fs.ingestionSourcePvc.subPath) .Values.isExporter ) }}

apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -65,9 +65,16 @@ spec:
- name: {{ $cloudProviderImagePullSecretName | quote }}
{{- end }}
volumes:
{{- if $fs.ingestionSourcePvc.enabled }}
- name: ingestion-storage
persistentVolumeClaim:
claimName: {{ $fs.ingestionSourcePvc.name }}
{{- end }}
{{- if $fs.internalPvc.enabled }}
- name: internal-storage
persistentVolumeClaim:
claimName: {{ $fs.internalPvc.name }}
{{- end }}
{{- if .Values.global.ca.secretName }}
- name: root-ca
secret:
Expand Down Expand Up @@ -120,10 +127,14 @@ spec:
containerPort: 8080
protocol: TCP
volumeMounts:
{{- if $fs.ingestionSourcePvc.enabled }}
- name: ingestion-storage
mountPath: /layerSources
- name: ingestion-storage
mountPath: /app/tiles_outputs
mountPath: {{ $fs.ingestionSourcePvc.mountPath }}
{{- end }}
{{- if $fs.internalPvc.enabled }}
- name: internal-storage
mountPath: {{ $fs.internalPvc.mountPath }}
{{- end }}
{{- if .Values.global.ca.secretName }}
- name: root-ca
mountPath: {{ printf "%s/%s" .Values.global.ca.path .Values.global.ca.key | quote }}
Expand Down
2 changes: 2 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ storage:
tilesStorageProvider: ""
fs:
ingestionSourcePvc:
enabled: false
name: ""
subPath: ""
internalPvc:
enabled: false
name: ""
tilesSubPath: ""
gpkgSubPath: ""
Expand Down
Loading