Skip to content

Commit

Permalink
UNSOI-2606: use whole path for folders
Browse files Browse the repository at this point in the history
  • Loading branch information
dementyev-subshell committed Jan 23, 2025
1 parent 0288517 commit 71dde7f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions charts/sophora-importer/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ spec:
mountPath: /sophora/logback-spring.xml
subPath: logback-spring.xml
mountPropagation: Bidirectional
- name: local-import-folders
mountPath: /import-local/
{{- if .Values.transformation.data.useSaxon }}
- name: saxon-licence
subPath: {{ .Values.transformation.data.saxonLicenceSecretKey }}
Expand All @@ -113,7 +111,7 @@ spec:
{{- range $.Values.sophora.importer.configuration.importer.instances }}
{{- range $folderName, $folderPath := .folders }}
{{- if and (not (hasPrefix "s3://" $folderPath)) (hasKey (dict "watch" 1 "temp" 1 "success" 1 "failure" 1) $folderName) }}
mkdir -pv /import-local/{{ $folderPath | trimPrefix "/" }}
mkdir -pv {{ $folderPath }}
{{- end }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 71dde7f

Please sign in to comment.