Skip to content
Snippets Groups Projects
Commit 11bce213 authored by Lorenz Boguhn's avatar Lorenz Boguhn
Browse files

Remove unnecessary client

 from KubernetesBenchmark.kt to fix native image build
parent 81e94c8b
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!111Add prefix to output files to link results and experiment,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
...@@ -4,7 +4,6 @@ import io.fabric8.kubernetes.api.model.KubernetesResource ...@@ -4,7 +4,6 @@ import io.fabric8.kubernetes.api.model.KubernetesResource
import io.fabric8.kubernetes.api.model.Namespaced import io.fabric8.kubernetes.api.model.Namespaced
import io.fabric8.kubernetes.client.CustomResource import io.fabric8.kubernetes.client.CustomResource
import io.fabric8.kubernetes.client.DefaultKubernetesClient import io.fabric8.kubernetes.client.DefaultKubernetesClient
import io.fabric8.kubernetes.client.NamespacedKubernetesClient
import io.quarkus.runtime.annotations.RegisterForReflection import io.quarkus.runtime.annotations.RegisterForReflection
import mu.KotlinLogging import mu.KotlinLogging
import theodolite.k8s.K8sResourceLoader import theodolite.k8s.K8sResourceLoader
...@@ -15,7 +14,6 @@ private val logger = KotlinLogging.logger {} ...@@ -15,7 +14,6 @@ private val logger = KotlinLogging.logger {}
private var DEFAULT_NAMESPACE = "default" private var DEFAULT_NAMESPACE = "default"
val namespace: String = System.getenv("NAMESPACE") ?: DEFAULT_NAMESPACE val namespace: String = System.getenv("NAMESPACE") ?: DEFAULT_NAMESPACE
val client: NamespacedKubernetesClient = DefaultKubernetesClient().inNamespace(namespace)
@RegisterForReflection @RegisterForReflection
class KubernetesBenchmark : Benchmark, CustomResource(), Namespaced { class KubernetesBenchmark : Benchmark, CustomResource(), Namespaced {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment