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

fix empty list bug

parent f580e1ae
Branches
Tags
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!107Fix small bugs,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
...@@ -8,6 +8,6 @@ interface Benchmark { ...@@ -8,6 +8,6 @@ interface Benchmark {
fun buildDeployment( fun buildDeployment(
load: LoadDimension, load: LoadDimension,
res: Resource, res: Resource,
configurationOverrides: List<ConfigurationOverride> configurationOverrides: List<ConfigurationOverride?>
): BenchmarkDeployment ): BenchmarkDeployment
} }
...@@ -10,7 +10,7 @@ class BenchmarkExecution { ...@@ -10,7 +10,7 @@ class BenchmarkExecution {
lateinit var resources: ResourceDefinition lateinit var resources: ResourceDefinition
lateinit var slos: List<Slo> lateinit var slos: List<Slo>
lateinit var execution: Execution lateinit var execution: Execution
lateinit var configOverrides: List<ConfigurationOverride> lateinit var configOverrides: List<ConfigurationOverride?>
class Execution { class Execution {
lateinit var strategy: String lateinit var strategy: String
......
...@@ -40,7 +40,7 @@ class KubernetesBenchmark : Benchmark { ...@@ -40,7 +40,7 @@ class KubernetesBenchmark : Benchmark {
override fun buildDeployment( override fun buildDeployment(
load: LoadDimension, load: LoadDimension,
res: Resource, res: Resource,
configurationOverrides: List<ConfigurationOverride> configurationOverrides: List<ConfigurationOverride?>
): BenchmarkDeployment { ): BenchmarkDeployment {
val resources = loadKubernetesResources(this.appResource + this.loadGenResource) val resources = loadKubernetesResources(this.appResource + this.loadGenResource)
val patcherFactory = PatcherFactory() val patcherFactory = PatcherFactory()
...@@ -50,7 +50,7 @@ class KubernetesBenchmark : Benchmark { ...@@ -50,7 +50,7 @@ class KubernetesBenchmark : Benchmark {
res.getType().forEach{ patcherDefinition -> patcherFactory.createPatcher(patcherDefinition, resources).patch(res.get().toString()) } res.getType().forEach{ patcherDefinition -> patcherFactory.createPatcher(patcherDefinition, resources).patch(res.get().toString()) }
// Patch the given overrides // Patch the given overrides
configurationOverrides.forEach { override -> patcherFactory.createPatcher(override.patcher, resources).patch(override.value) } configurationOverrides.forEach { override -> override?.let { patcherFactory.createPatcher(it.patcher, resources).patch(override.value) } }
return KubernetesBenchmarkDeployment( return KubernetesBenchmarkDeployment(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment