diff --git a/charts/sophora-importer/Chart.yaml b/charts/sophora-importer/Chart.yaml index 93c58f9..8f95ca1 100644 --- a/charts/sophora-importer/Chart.yaml +++ b/charts/sophora-importer/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.3.0 +version: 1.3.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/sophora-importer/templates/statefulset.yaml b/charts/sophora-importer/templates/statefulset.yaml index 67254c2..1e0f821 100644 --- a/charts/sophora-importer/templates/statefulset.yaml +++ b/charts/sophora-importer/templates/statefulset.yaml @@ -70,15 +70,11 @@ spec: echo Creating import folders for importer: {{- range $instance := .Values.sophora.importer.instances }} {{/* Ensure that every instance folder is available on s3 */}} - mkdir -p "/opt/s3fs/bucket/{{ $instance }}" + mkdir -pv "/opt/s3fs/bucket/{{ $instance }}" {{- range $folder, $location := $.Values.sophora.importer.createImportFolders }} - mkdir -p "{{ ((eq $location "s3") | ternary "/opt/s3fs/bucket" "/import") }}/{{ $instance }}/{{ $folder }}" + mkdir -pv "{{ ((eq $location "s3") | ternary "/opt/s3fs/bucket" "/import") }}/{{ $instance }}/{{ $folder }}" {{- end }} {{- end }} - - echo ...folders created as follows: - find /import - find /opt/s3fs/bucket resources: {{- toYaml .Values.sophora.importer.s3Bucket.resources | nindent 12 }} volumeMounts: