From 45759ff9350d7702f80e44c6acbb77dad0125ff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20M=C3=A9sz=C3=A1ros?= Date: Wed, 13 Nov 2024 20:15:02 +0100 Subject: [PATCH] fix: issue after rebase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Attila Mészáros --- .../operator/junit/LocallyRunOperatorExtension.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/operator-framework-junit5/src/main/java/io/javaoperatorsdk/operator/junit/LocallyRunOperatorExtension.java b/operator-framework-junit5/src/main/java/io/javaoperatorsdk/operator/junit/LocallyRunOperatorExtension.java index 6b8ef3f622..5d5055ac4a 100644 --- a/operator-framework-junit5/src/main/java/io/javaoperatorsdk/operator/junit/LocallyRunOperatorExtension.java +++ b/operator-framework-junit5/src/main/java/io/javaoperatorsdk/operator/junit/LocallyRunOperatorExtension.java @@ -74,14 +74,11 @@ private LocallyRunOperatorExtension( this.portForwards = portForwards; this.localPortForwards = new ArrayList<>(portForwards.size()); this.additionalCustomResourceDefinitions = additionalCustomResourceDefinitions; - configurationServiceOverrider = configurationServiceOverrider != null - ? configurationServiceOverrider - .andThen(overrider -> overrider.withKubernetesClient(kubernetesClient)) - : overrider -> overrider.withKubernetesClient(kubernetesClient); - this.operator = new Operator( - configurationServiceOverrider == null ? o -> o.withKubernetesClient(getKubernetesClient()) - : configurationServiceOverrider - .andThen(o -> o.withKubernetesClient(getKubernetesClient()))); + configurationServiceOverrider = configurationServiceOverrider != null + ? configurationServiceOverrider + .andThen(overrider -> overrider.withKubernetesClient(kubernetesClient)) + : overrider -> overrider.withKubernetesClient(kubernetesClient); + this.operator = new Operator(configurationServiceOverrider); this.registeredControllers = new HashMap<>(); this.crdMappings = crdMappings; }