Skip to content

Commit

Permalink
ZUPUS-298: remove debug output with find (slows down/crashes startu…
Browse files Browse the repository at this point in the history
…p) (#116)

* ZUPUS-298: remove debug output with `find` (slows down/crashes startup)

* ZUPUS-298: simplify output (use mkdir -v)

---------

Co-authored-by: Jonas Krukenberg <[email protected]>
  • Loading branch information
jkruke and Jonas Krukenberg authored Jul 29, 2024
1 parent 6849432 commit 28f1cbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/sophora-importer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 2 additions & 6 deletions charts/sophora-importer/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 28f1cbd

Please sign in to comment.