Interface KubernetesClusterProvider.CredentialsFacet

Enclosing interface:
KubernetesClusterProvider

public static interface KubernetesClusterProvider.CredentialsFacet
Managed Kubernetes offerings issue API credentials from the cloud control plane rather than from a long-lived in-cluster service account. Implement this facet to supply those bootstrap credentials; Morpheus uses them to create its own morpheus service account on the cluster and then owns the durable token and all subsequent plumbing.

Credentials are returned as a KubeApiCredentials bundle because offerings authenticate differently: EKS/GKE issue a bearer token while AKS issues a client certificate / key pair. This is the seam currently represented by generateClusterToken (EKS), refreshKubeAPIToken (AKS), and the equivalent token exchange (GKE).