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
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
)
......
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