Skip to content

Commit 59e713e

Browse files
committed
fix: add Javadoc for the main and infrastructure client distinction in HasKubernetesClient interface
Signed-off-by: xstefank <[email protected]>
1 parent 98cb8da commit 59e713e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,20 @@
33
import io.fabric8.kubernetes.client.KubernetesClient;
44

55
public interface HasKubernetesClient {
6+
/**
7+
* Returns the main Kubernetes client that is used to deploy the operator to the cluster.
8+
*
9+
* @return the main Kubernetes client
10+
*/
611
KubernetesClient getKubernetesClient();
712

13+
/**
14+
* Returns the Kubernetes client that is used to deploy infrastructure resources to the cluster
15+
* such as clusterroles, clusterrolebindings, etc. This client can be different from the main
16+
* client in case you need to test the operator with a different restrictions more closely
17+
* resembling the real restrictions it will have in production.
18+
*
19+
* @return the infrastructure Kubernetes client
20+
*/
821
KubernetesClient getInfrastructureKubernetesClient();
922
}

0 commit comments

Comments
 (0)