Interface KubernetesClusterProvider.ApiAccessFacet

Enclosing interface:
KubernetesClusterProvider

public static interface KubernetesClusterProvider.ApiAccessFacet
Implement this facet when the kubeconfig / API access document cannot be assembled generically from the cluster's serviceUrl, serviceCert, and token, and instead requires a cloud-specific construction (for example an exec-credential plugin stanza).

This is the seam currently represented by getKubernetesApiAccess / buildKubeConfig in the managed host services.

  • Method Details

    • getKubernetesApiAccess

      ServiceResponse<String> getKubernetesApiAccess(ComputeServerGroup cluster)
      Produce the kubeconfig (API access document) used by Morpheus to administer the cluster.
      Parameters:
      cluster - the cluster to build access for
      Returns:
      a ServiceResponse whose data carries the kubeconfig contents on success