From 11bce21306b73f816f3bdc055f2da5bef45a2be0 Mon Sep 17 00:00:00 2001 From: lorenz <stu203404@mail.uni-kiel.de> Date: Tue, 13 Apr 2021 13:13:51 +0200 Subject: [PATCH] Remove unnecessary client from KubernetesBenchmark.kt to fix native image build --- .../src/main/kotlin/theodolite/benchmark/KubernetesBenchmark.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/theodolite-quarkus/src/main/kotlin/theodolite/benchmark/KubernetesBenchmark.kt b/theodolite-quarkus/src/main/kotlin/theodolite/benchmark/KubernetesBenchmark.kt index fbe78357c..35ac9fb57 100644 --- a/theodolite-quarkus/src/main/kotlin/theodolite/benchmark/KubernetesBenchmark.kt +++ b/theodolite-quarkus/src/main/kotlin/theodolite/benchmark/KubernetesBenchmark.kt @@ -4,7 +4,6 @@ import io.fabric8.kubernetes.api.model.KubernetesResource import io.fabric8.kubernetes.api.model.Namespaced import io.fabric8.kubernetes.client.CustomResource import io.fabric8.kubernetes.client.DefaultKubernetesClient -import io.fabric8.kubernetes.client.NamespacedKubernetesClient import io.quarkus.runtime.annotations.RegisterForReflection import mu.KotlinLogging import theodolite.k8s.K8sResourceLoader @@ -15,7 +14,6 @@ private val logger = KotlinLogging.logger {} private var DEFAULT_NAMESPACE = "default" val namespace: String = System.getenv("NAMESPACE") ?: DEFAULT_NAMESPACE -val client: NamespacedKubernetesClient = DefaultKubernetesClient().inNamespace(namespace) @RegisterForReflection class KubernetesBenchmark : Benchmark, CustomResource(), Namespaced { -- GitLab