File tree Expand file tree Collapse file tree
operator-framework-junit5/src/main/java/io/javaoperatorsdk/operator/junit Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import io .fabric8 .kubernetes .client .KubernetesClient ;
44
55public 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}
You can’t perform that action at this time.
0 commit comments