Skip to content
Snippets Groups Projects
Commit 0fe325cc authored by Benedikt Wetzel's avatar Benedikt Wetzel Committed by Sören Henning
Browse files

clean up

parent 2306069d
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!156Update fabric8,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
...@@ -4,7 +4,6 @@ import io.fabric8.kubernetes.client.NamespacedKubernetesClient ...@@ -4,7 +4,6 @@ import io.fabric8.kubernetes.client.NamespacedKubernetesClient
import io.fabric8.kubernetes.client.dsl.MixedOperation import io.fabric8.kubernetes.client.dsl.MixedOperation
import io.fabric8.kubernetes.client.dsl.Resource import io.fabric8.kubernetes.client.dsl.Resource
import io.fabric8.kubernetes.internal.KubernetesDeserializer import io.fabric8.kubernetes.internal.KubernetesDeserializer
import theodolite.k8s.K8sContextFactory
import theodolite.model.crd.BenchmarkCRD import theodolite.model.crd.BenchmarkCRD
import theodolite.model.crd.BenchmarkExecutionList import theodolite.model.crd.BenchmarkExecutionList
import theodolite.model.crd.ExecutionCRD import theodolite.model.crd.ExecutionCRD
...@@ -18,24 +17,9 @@ private const val BENCHMARK_PLURAL = "benchmarks" ...@@ -18,24 +17,9 @@ private const val BENCHMARK_PLURAL = "benchmarks"
private const val API_VERSION = "v1" private const val API_VERSION = "v1"
private const val GROUP = "theodolite.com" private const val GROUP = "theodolite.com"
class ControllerDummy(val client: NamespacedKubernetesClient) { class ControllerDummy(client: NamespacedKubernetesClient) {
private var controller: TheodoliteController private var controller: TheodoliteController
val executionContext = K8sContextFactory()
.create(
API_VERSION,
SCOPE,
GROUP,
EXECUTION_PLURAL
)
val benchmarkContext = K8sContextFactory()
.create(
API_VERSION,
SCOPE,
GROUP,
BENCHMARK_PLURAL
)
val executionStateHandler = ExecutionStateHandler( val executionStateHandler = ExecutionStateHandler(
client = client client = client
) )
...@@ -61,13 +45,11 @@ class ControllerDummy(val client: NamespacedKubernetesClient) { ...@@ -61,13 +45,11 @@ class ControllerDummy(val client: NamespacedKubernetesClient) {
ExecutionCRD, ExecutionCRD,
BenchmarkExecutionList, BenchmarkExecutionList,
Resource<ExecutionCRD>> = client.customResources( Resource<ExecutionCRD>> = client.customResources(
executionContext,
ExecutionCRD::class.java, ExecutionCRD::class.java,
BenchmarkExecutionList::class.java BenchmarkExecutionList::class.java
) )
val benchmarkCRDClient = client.customResources( val benchmarkCRDClient = client.customResources(
benchmarkContext,
BenchmarkCRD::class.java, BenchmarkCRD::class.java,
KubernetesBenchmarkList::class.java KubernetesBenchmarkList::class.java
) )
......
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