Skip to content
Snippets Groups Projects
Commit 1997256d authored by Sören Henning's avatar Sören Henning
Browse files

Create ConfigMaps for benchmark resources

parent aca4ca48
No related branches found
No related tags found
2 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!152Adjust Benchmark Definitions for Operator
../theodolite-benchmarks/definitions/
\ No newline at end of file
{{- $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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment