From 0c20e6b6726a483dbdb2c116089f02bbe0dc5bf9 Mon Sep 17 00:00:00 2001 From: Chris Laprun Date: Tue, 19 Nov 2024 16:31:09 +0100 Subject: [PATCH] refactor: minor (#2594) Signed-off-by: Chris Laprun --- .../processing/dependent/workflow/DefaultManagedWorkflow.java | 2 +- .../operator/workflow/complexdependent/ComplexWorkflowIT.java | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/workflow/DefaultManagedWorkflow.java b/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/workflow/DefaultManagedWorkflow.java index 64f936c70d..017dbb74a5 100644 --- a/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/workflow/DefaultManagedWorkflow.java +++ b/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/workflow/DefaultManagedWorkflow.java @@ -76,7 +76,7 @@ public boolean isEmpty() { public Workflow

resolve(KubernetesClient client, ControllerConfiguration

configuration) { final var alreadyResolved = new HashMap(orderedSpecs.size()); - for (DependentResourceSpec spec : orderedSpecs) { + for (DependentResourceSpec spec : orderedSpecs) { final var dependentResource = resolve(spec, client, configuration); final var node = new DependentResourceNode( spec.getReconcileCondition(), diff --git a/operator-framework/src/test/java/io/javaoperatorsdk/operator/workflow/complexdependent/ComplexWorkflowIT.java b/operator-framework/src/test/java/io/javaoperatorsdk/operator/workflow/complexdependent/ComplexWorkflowIT.java index 163abe34a7..cf7cdac004 100644 --- a/operator-framework/src/test/java/io/javaoperatorsdk/operator/workflow/complexdependent/ComplexWorkflowIT.java +++ b/operator-framework/src/test/java/io/javaoperatorsdk/operator/workflow/complexdependent/ComplexWorkflowIT.java @@ -4,8 +4,6 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import io.fabric8.kubernetes.api.model.ObjectMetaBuilder; import io.fabric8.kubernetes.api.model.Service; @@ -24,8 +22,6 @@ class ComplexWorkflowIT { public static final String TEST_RESOURCE_NAME = "test1"; - Logger log = LoggerFactory.getLogger(ComplexWorkflowIT.class); - @RegisterExtension LocallyRunOperatorExtension operator = LocallyRunOperatorExtension.builder()