Interface HasKubernetesClient

All Known Implementing Classes:
AbstractOperatorExtension, ClusterDeployedOperatorExtension, LocallyRunOperatorExtension

public interface HasKubernetesClient
  • Method Summary

    Modifier and Type
    Method
    Description
    io.fabric8.kubernetes.client.KubernetesClient
    Returns the Kubernetes client that is used to deploy infrastructure resources to the cluster such as clusterroles, clusterrolebindings, etc.
    io.fabric8.kubernetes.client.KubernetesClient
    Returns the main Kubernetes client that is used to deploy the operator to the cluster.
  • Method Details

    • getKubernetesClient

      io.fabric8.kubernetes.client.KubernetesClient getKubernetesClient()
      Returns the main Kubernetes client that is used to deploy the operator to the cluster.
      Returns:
      the main Kubernetes client
    • getInfrastructureKubernetesClient

      io.fabric8.kubernetes.client.KubernetesClient getInfrastructureKubernetesClient()
      Returns the Kubernetes client that is used to deploy infrastructure resources to the cluster such as clusterroles, clusterrolebindings, etc. This client can be different from the main client in case you need to test the operator with a different restrictions more closely resembling the real restrictions it will have in production.
      Returns:
      the infrastructure Kubernetes client