File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
operator-framework/src/test/java/io/javaoperatorsdk/operator Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 5
5
import java .util .stream .Collectors ;
6
6
7
7
import io .fabric8 .kubernetes .api .model .ConfigMap ;
8
+ import io .fabric8 .kubernetes .client .DefaultKubernetesClient ;
8
9
import io .javaoperatorsdk .operator .sample .TestCustomResource ;
9
10
import io .javaoperatorsdk .operator .sample .TestCustomResourceController ;
10
11
import org .awaitility .Awaitility ;
@@ -29,7 +30,9 @@ public class ConcurrencyIT {
29
30
30
31
@ BeforeAll
31
32
public void setup () {
32
- integrationTest .initialize (new TestCustomResourceController (true ), "test-crd.yaml" );
33
+ final TestCustomResourceController controller = new TestCustomResourceController (true );
34
+ controller .setClient (new DefaultKubernetesClient ());
35
+ integrationTest .initialize (controller , "test-crd.yaml" );
33
36
}
34
37
35
38
@ BeforeEach
Original file line number Diff line number Diff line change 5
5
6
6
import io .fabric8 .kubernetes .api .model .ConfigMap ;
7
7
import io .fabric8 .kubernetes .api .model .ObjectMetaBuilder ;
8
+ import io .fabric8 .kubernetes .client .DefaultKubernetesClient ;
8
9
import io .javaoperatorsdk .operator .sample .TestCustomResource ;
9
10
import io .javaoperatorsdk .operator .sample .TestCustomResourceController ;
10
11
import io .javaoperatorsdk .operator .sample .TestCustomResourceSpec ;
@@ -23,7 +24,9 @@ public class ControllerExecutionIT {
23
24
private IntegrationTestSupport integrationTestSupport = new IntegrationTestSupport ();
24
25
25
26
public void initAndCleanup (boolean controllerStatusUpdate ) {
26
- integrationTestSupport .initialize (new TestCustomResourceController (controllerStatusUpdate ), "test-crd.yaml" );
27
+ final TestCustomResourceController controller = new TestCustomResourceController (controllerStatusUpdate );
28
+ controller .setClient (new DefaultKubernetesClient ());
29
+ integrationTestSupport .initialize (controller , "test-crd.yaml" );
27
30
integrationTestSupport .cleanup ();
28
31
}
29
32
You can’t perform that action at this time.
0 commit comments