Skip to content

Commit

Permalink
Changed variable from class member to local variable (strimzi#10739)
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Patierno <[email protected]>
  • Loading branch information
ppatierno authored Oct 21, 2024
1 parent 2149b43 commit aca8479
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public class KafkaAutoRebalancingMockTest {
private static KubernetesClient client;
private static MockKube3 mockKube;
private String namespace;
private ResourceOperatorSupplier supplier;
private StrimziPodSetController podSetController;
private KafkaAssemblyOperator operator;
private Admin admin;
Expand Down Expand Up @@ -195,7 +194,7 @@ public void beforeEach(TestInfo testInfo) {
// getting the default admin client to mock it when needed for blocked nodes (on scale down)
admin = ResourceUtils.adminClient();

supplier = new ResourceOperatorSupplier(vertx, client, null, ResourceUtils.adminClientProvider(admin), null,
ResourceOperatorSupplier supplier = new ResourceOperatorSupplier(vertx, client, null, ResourceUtils.adminClientProvider(admin), null,
ResourceUtils.kafkaAgentClientProvider(), ResourceUtils.metricsProvider(), null, PFA, 2_000);

podSetController = new StrimziPodSetController(namespace, Labels.EMPTY, supplier.kafkaOperator, supplier.connectOperator, supplier.mirrorMaker2Operator, supplier.strimziPodSetOperator, supplier.podOperations, supplier.metricsProvider, Integer.parseInt(ClusterOperatorConfig.POD_SET_CONTROLLER_WORK_QUEUE_SIZE.defaultValue()));
Expand Down

0 comments on commit aca8479

Please sign in to comment.