diff --git a/charts/invenio/templates/install-init-job.yaml b/charts/invenio/templates/install-init-job.yaml index 8eff36c..0b44db7 100644 --- a/charts/invenio/templates/install-init-job.yaml +++ b/charts/invenio/templates/install-init-job.yaml @@ -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: diff --git a/charts/invenio/values.yaml b/charts/invenio/values.yaml index b482f72..73b3512 100644 --- a/charts/invenio/values.yaml +++ b/charts/invenio/values.yaml @@ -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