Skip to content
Snippets Groups Projects
Commit 827432ca authored by Benedikt Wetzel's avatar Benedikt Wetzel
Browse files

Enhance crd benchmark schemata by adding an resources field, small enhancements

parent 72006cf5
No related branches found
No related tags found
1 merge request!197Add support for long-running infrastructure components
This commit is part of merge request !197. Comments created here will be created in the context of that merge request.
...@@ -68,8 +68,8 @@ class TheodoliteController( ...@@ -68,8 +68,8 @@ class TheodoliteController(
try { try {
val modifier = ConfigOverrideModifier( val modifier = ConfigOverrideModifier(
execution = execution, execution = execution,
resources = benchmark.loadKubernetesResources(benchmark.sut).map { it.first } resources = benchmark.loadKubernetesResources(benchmark.sut.resources).map { it.first }
+ benchmark.loadKubernetesResources(benchmark.loadGenerator).map { it.first } + benchmark.loadKubernetesResources(benchmark.loadGenerator.resources).map { it.first }
) )
modifier.setAdditionalLabels( modifier.setAdditionalLabels(
labelValue = execution.name, labelValue = execution.name,
......
package theodolite.execution.operator package theodolite.execution.operator
import theodolite.benchmark.KubernetesBenchmark import theodolite.benchmark.KubernetesBenchmark
import theodolite.benchmark.Resources
import theodolite.model.crd.BenchmarkCRD import theodolite.model.crd.BenchmarkCRD
import theodolite.util.KafkaConfig import theodolite.util.KafkaConfig
...@@ -24,9 +25,14 @@ class BenchmarkCRDummy(name: String) { ...@@ -24,9 +25,14 @@ class BenchmarkCRDummy(name: String) {
benchmarkCR.kind = "Benchmark" benchmarkCR.kind = "Benchmark"
benchmarkCR.apiVersion = "v1" benchmarkCR.apiVersion = "v1"
benchmark.infrastructure = emptyList()
benchmark.sut = emptyList() benchmark.infrastructure = Resources()
benchmark.loadGenerator = emptyList() benchmark.sut = Resources()
benchmark.loadGenerator = Resources()
benchmark.infrastructure.resources = emptyList()
benchmark.sut.resources = emptyList()
benchmark.loadGenerator.resources = emptyList()
benchmark.resourceTypes = emptyList() benchmark.resourceTypes = emptyList()
benchmark.loadTypes = emptyList() benchmark.loadTypes = emptyList()
......
...@@ -3,7 +3,6 @@ kind: benchmark ...@@ -3,7 +3,6 @@ kind: benchmark
metadata: metadata:
name: example-benchmark name: example-benchmark
spec: spec:
infrastructure: []
appResource: appResource:
- "uc1-kstreams-deployment.yaml" - "uc1-kstreams-deployment.yaml"
- "aggregation-service.yaml" - "aggregation-service.yaml"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment