From 6072ac57fda53beaf8f8df463d3013b2fa84dff0 Mon Sep 17 00:00:00 2001 From: Phil Schneider Date: Thu, 24 Oct 2024 19:23:17 +0200 Subject: [PATCH] chore: remove test seeding files Refs: #77 --- .../templates/job-registry-migrations.yaml | 18 ++---------------- charts/ssi-asr/values.yaml | 7 ------- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/charts/ssi-asr/templates/job-registry-migrations.yaml b/charts/ssi-asr/templates/job-registry-migrations.yaml index 1b55adb..618adfd 100644 --- a/charts/ssi-asr/templates/job-registry-migrations.yaml +++ b/charts/ssi-asr/templates/job-registry-migrations.yaml @@ -85,29 +85,15 @@ spec: protocol: TCP resources: {{- toYaml .Values.migrations.resources | nindent 10 }} - {{- if or (.Values.migrations.seeding.useInitial) (and (.Values.migrations.seeding.seedTestData.useOwnConfigMap.configMap) (.Values.migrations.seeding.seedTestData.useOwnConfigMap.filename)) }} + {{- if .Values.migrations.seeding.useInitial }} volumeMounts: - {{- if (.Values.migrations.seeding.useInitial) }} - name: data-initial mountPath: /migrations/Seeder/Data/overwrite - {{- end }} - {{- if and (.Values.migrations.seeding.seedTestData.useOwnConfigMap.configMap) (.Values.migrations.seeding.seedTestData.useOwnConfigMap.filename) }} - - name: test-data-custom - mountPath: /migrations/Seeder/Data/import/custom-test-data - {{- end }} {{- end }} - {{- if or (.Values.migrations.seeding.useInitial) (and (.Values.migrations.seeding.seedTestData.useOwnConfigMap.configMap) (.Values.migrations.seeding.seedTestData.useOwnConfigMap.filename)) }} + {{- if .Values.migrations.seeding.useInitial }} volumes: - {{- if (.Values.migrations.seeding.useInitial) }} - name: data-initial configMap: name: {{ .Release.Name }}-initial-data optional: true - {{- end }} - {{- if and (.Values.migrations.seeding.seedTestData.useOwnConfigMap.configMap) (.Values.migrations.seeding.seedTestData.useOwnConfigMap.filename) }} - - name: test-data-custom - configMap: - name: "{{ .Values.migrations.seeding.seedTestData.useOwnConfigMap.configMap }}" - optional: true - {{- end }} {{- end }} diff --git a/charts/ssi-asr/values.yaml b/charts/ssi-asr/values.yaml index 5027592..1352fa9 100644 --- a/charts/ssi-asr/values.yaml +++ b/charts/ssi-asr/values.yaml @@ -70,13 +70,6 @@ migrations: # -- Enables dynamic seeding of information related to the operator company: operator.bpn; # If set to `true` the data configured in the config map 'configmap-seeding-initialdata.yaml' will be taken to insert the initial data; useInitial: true - # -- Option to seed test data provided in a configMap - seedTestData: - useOwnConfigMap: - # -- ConfigMap containing json files for the tables to seed, e.g. credentials.test.json, authorities.test.json, etc. - configMap: "" - # -- Filename identifying the test data files e.g. for credentials.test.json the value would be "test" - filename: "" logging: default: "Information"