Skip to content

Commit

Permalink
Toggle for importing ICL test data on initial deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
J4bbi committed Aug 27, 2024
1 parent 7e86cd8 commit 4e4bd51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion charts/invenio/templates/install-init-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ metadata:
{{- end -}}
{{- if .Values.invenio.create_fixtures -}}
{{- $cmd = cat $cmd "&& invenio rdm-records fixtures" -}}
{{- end -}}

{{- if .Values.invenio.import_test_data -}}
{{- $cmd = cat $cmd "&& cd test_data && python download_test_data.py && python create_test_data_records.py" -}}
{{- end -}}
{{- end -}}

spec:
template:
Expand Down
1 change: 1 addition & 0 deletions charts/invenio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ invenio:
default_users: [] # Requires invenio.init=true
demo_data: false # Setting invenio.demo_data=true requires also setting default_users!
create_fixtures: false # Also requires invenio.init=true. Indexing can take several minutes!!
import_test_data: false # Download and import Imperial test data. Requires create_fixtures.
sentry:
enabled: false
existing_secret: false
Expand Down

0 comments on commit 4e4bd51

Please sign in to comment.