From 0fe325cc2b2a35547e703a7dcb4a0acc58b42f96 Mon Sep 17 00:00:00 2001 From: "stu126940@mail.uni-kiel.de" <stu126940@mail.uni-kiel.de> Date: Fri, 25 Jun 2021 21:45:33 +0200 Subject: [PATCH] clean up --- .../execution/operator/ControllerDummy.kt | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/theodolite-quarkus/src/test/kotlin/theodolite/execution/operator/ControllerDummy.kt b/theodolite-quarkus/src/test/kotlin/theodolite/execution/operator/ControllerDummy.kt index d87eb7aa8..eec399218 100644 --- a/theodolite-quarkus/src/test/kotlin/theodolite/execution/operator/ControllerDummy.kt +++ b/theodolite-quarkus/src/test/kotlin/theodolite/execution/operator/ControllerDummy.kt @@ -4,7 +4,6 @@ import io.fabric8.kubernetes.client.NamespacedKubernetesClient import io.fabric8.kubernetes.client.dsl.MixedOperation import io.fabric8.kubernetes.client.dsl.Resource import io.fabric8.kubernetes.internal.KubernetesDeserializer -import theodolite.k8s.K8sContextFactory import theodolite.model.crd.BenchmarkCRD import theodolite.model.crd.BenchmarkExecutionList import theodolite.model.crd.ExecutionCRD @@ -18,24 +17,9 @@ private const val BENCHMARK_PLURAL = "benchmarks" private const val API_VERSION = "v1" private const val GROUP = "theodolite.com" -class ControllerDummy(val client: NamespacedKubernetesClient) { +class ControllerDummy(client: NamespacedKubernetesClient) { 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( client = client ) @@ -61,13 +45,11 @@ class ControllerDummy(val client: NamespacedKubernetesClient) { ExecutionCRD, BenchmarkExecutionList, Resource<ExecutionCRD>> = client.customResources( - executionContext, ExecutionCRD::class.java, BenchmarkExecutionList::class.java ) val benchmarkCRDClient = client.customResources( - benchmarkContext, BenchmarkCRD::class.java, KubernetesBenchmarkList::class.java ) -- GitLab