From fa7d8a9b75bcfec687c9a6abff8314a022c75e5c Mon Sep 17 00:00:00 2001 From: Phil Schneider Date: Fri, 11 Oct 2024 11:47:38 +0200 Subject: [PATCH] chore: adjust seeding config Refs: #449 #447 --- .../templates/configmap-backend-seeding-initialdata.yaml | 4 ++-- .../templates/configmap-backend-seeding-testdata.yaml | 8 ++++---- .../portal/templates/job-backend-portal-migrations.yaml | 2 +- charts/portal/values.yaml | 3 ++- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/charts/portal/templates/configmap-backend-seeding-initialdata.yaml b/charts/portal/templates/configmap-backend-seeding-initialdata.yaml index a01e9273..7300af80 100644 --- a/charts/portal/templates/configmap-backend-seeding-initialdata.yaml +++ b/charts/portal/templates/configmap-backend-seeding-initialdata.yaml @@ -24,7 +24,7 @@ metadata: name: "{{ include "portal.fullname" . }}-default-initialdata" namespace: {{ .Release.Namespace }} data: - addresses.test.json: |- + addresses.json: |- [ { "id": "b4db3945-19a7-4a50-97d6-e66e8dfd04fb", @@ -39,7 +39,7 @@ data: "country_alpha2code": "DE" } ] - companies.test.json: |- + companies.json: |- [ { "id": "2dc4249f-b5ca-4d42-bef1-7a7a950a4f87", diff --git a/charts/portal/templates/configmap-backend-seeding-testdata.yaml b/charts/portal/templates/configmap-backend-seeding-testdata.yaml index 83b1d2db..87e74886 100644 --- a/charts/portal/templates/configmap-backend-seeding-testdata.yaml +++ b/charts/portal/templates/configmap-backend-seeding-testdata.yaml @@ -24,7 +24,7 @@ metadata: name: "{{ include "portal.fullname" . }}-default-testdata" namespace: {{ .Release.Namespace }} data: - addresses.test.json: |- + addresses.defaulttest.json: |- [ { "id": "b4db3945-19a7-4a50-97d6-e66e8dfd04fe", @@ -111,7 +111,7 @@ data: "country_alpha2code": "DE" } ] - companies.test.json: |- + companies.defaulttest.json: |- [ { "id": "2dc4249f-b5ca-4d42-bef1-7a7a950a4f88", @@ -194,7 +194,7 @@ data: "self_description_document_id": "f90962ee-a358-4381-8947-c56268ff32c7" } ] - connectors.test.json: |- + connectors.defaulttest.json: |- [ { "id": "7e86a0b8-6903-496b-96d1-0ef508206833", @@ -263,7 +263,7 @@ data: "self_description_document_id": null } ] - documents.test.json: |- + documents.defaulttest.json: |- [ { "id": "f90962ee-a358-4381-8947-c56268ff32c7", diff --git a/charts/portal/templates/job-backend-portal-migrations.yaml b/charts/portal/templates/job-backend-portal-migrations.yaml index a56b3c42..18a156aa 100644 --- a/charts/portal/templates/job-backend-portal-migrations.yaml +++ b/charts/portal/templates/job-backend-portal-migrations.yaml @@ -142,4 +142,4 @@ spec: name: "{{ .Values.backend.portalmigrations.seeding.seedTestData.useOwnConfigMap.configMap }}" optional: true {{- end }} - {{- end }} \ No newline at end of file + {{- end }} diff --git a/charts/portal/values.yaml b/charts/portal/values.yaml index 86b44f56..6582b46c 100644 --- a/charts/portal/values.yaml +++ b/charts/portal/values.yaml @@ -622,7 +622,8 @@ backend: cpu: 75m memory: 350M seeding: - # -- If set to true the data configured in the config map 'configmap-backend-seeding-initialdata.yaml' will be taken to insert the initial data + # -- Enables dynamic seeding of bpn (dim.bpn) and did document location address (dim.didDocumentLocationAddress) of the operator; + # If set to `true` the data configured in the config map 'configmap-seeding-initialdata.yaml' will be taken to insert the initial data; useInitial: false # -- Option to seed test data provided in a configMap seedTestData: