Skip to content

Commit 3c07054

Browse files
committed
fix: Make AbstractOperatorExtension use the kubernetesClient if the infrastructureKubernetesClient is not set
Signed-off-by: xstefank <xstefank122@gmail.com>
1 parent 28813ee commit 3c07054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator-framework-junit5/src/main/java/io/javaoperatorsdk/operator/junit/AbstractOperatorExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ protected AbstractOperatorExtension(
7878
this.infrastructureKubernetesClient =
7979
infrastructureKubernetesClient != null
8080
? infrastructureKubernetesClient
81-
: new KubernetesClientBuilder().build();
81+
: kubernetesClient != null ? kubernetesClient : new KubernetesClientBuilder().build();
8282
this.kubernetesClient =
8383
kubernetesClient != null ? kubernetesClient : this.infrastructureKubernetesClient;
8484
this.infrastructure = infrastructure;

0 commit comments

Comments
 (0)