We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8144ddf commit 4868613Copy full SHA for 4868613
operator-framework-junit/src/main/java/io/javaoperatorsdk/operator/junit/LocallyRunOperatorExtension.java
@@ -365,7 +365,11 @@ protected void after(ExtensionContext context) {
365
iterator.remove();
366
}
367
368
- kubernetesClient.close();
+ // if the client is used for infra client, we should not close it
369
+ // either test or operator should close this client
370
+ if (getKubernetesClient() != getInfrastructureKubernetesClient()) {
371
+ kubernetesClient.close();
372
+ }
373
374
try {
375
this.operator.stop();
0 commit comments