diff --git a/helm/benchmark-definitions b/helm/benchmark-definitions new file mode 120000 index 0000000000000000000000000000000000000000..e25d86a1f35f9815225c23d78b8524f9df81f9b5 --- /dev/null +++ b/helm/benchmark-definitions @@ -0,0 +1 @@ +../theodolite-benchmarks/definitions/ \ No newline at end of file diff --git a/helm/templates/theodolite/benchmark-resources-config-map.yaml b/helm/templates/theodolite/benchmark-resources-config-map.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2f0f210cafbdbe035217274c7da69f5f56269e62 --- /dev/null +++ b/helm/templates/theodolite/benchmark-resources-config-map.yaml @@ -0,0 +1,14 @@ +{{- $processedDict := dict -}} +{{- range $path, $bytes := .Files.Glob "benchmark-definitions/**/resources/**" }} +{{- $name := base (dir (dir $path)) }} +{{- if not (hasKey $processedDict $name) -}} +{{ $_ := set $processedDict $name "true" }} +apiVersion: v1 +kind: ConfigMap +metadata: + name: benchmark-resources-{{ $name }} +data: +{{ ($.Files.Glob (printf "benchmark-definitions/%s/resources/*" $name)).AsConfig | indent 2 }} +--- +{{- end }} +{{- end }} \ No newline at end of file