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

Improve code style

parent b5f57377
No related branches found
No related tags found
1 merge request!257Allow Theodolite to deploy arbitrary resources
Pipeline #7071 failed
......@@ -62,7 +62,7 @@ class KubernetesBenchmark : KubernetesResource, Benchmark {
this.infrastructure.beforeActions.forEach { it.exec(client = client) }
val kubernetesManager = K8sManager(this.client)
loadKubernetesResources(this.infrastructure.resources)
.map{it.second}
.map { it.second }
// .forEach { client.resource(it).createOrReplace() }
.forEach { kubernetesManager.deploy(it) }
}
......
......@@ -130,8 +130,7 @@ class TheodoliteController(
.list()
.items
.map {
it.spec.name = it.metadata.name
it
it.apply { it.spec.name = it.metadata.name }
}
}
......
......@@ -3,14 +3,19 @@ kind: benchmark
metadata:
name: example-benchmark
spec:
appResource:
- "uc1-kstreams-deployment.yaml"
- "aggregation-service.yaml"
- "jmx-configmap.yaml"
- "uc1-service-monitor.yaml"
loadGenResource:
- "uc1-load-generator-deployment.yaml"
- "uc1-load-generator-service.yaml"
sut:
resources:
- configMap:
name: "example-configmap"
files:
- "uc1-kstreams-deployment.yaml"
loadGenerator:
resources:
- configMap:
name: "example-configmap"
files:
- uc1-load-generator-service.yaml
- uc1-load-generator-deployment.yaml
resourceTypes:
- typeName: "Instances"
patchers:
......@@ -35,4 +40,4 @@ spec:
numPartitions: 40
replicationFactor: 1
- name: "theodolite-.*"
removeOnly: True
\ No newline at end of file
removeOnly: True
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