Interface KubernetesClusterProvider.NodeSyncFacet

Enclosing interface:
KubernetesClusterProvider

public static interface KubernetesClusterProvider.NodeSyncFacet
Implement this facet to post-process the list of nodes discovered during a cluster sync. Managed offerings hide the control-plane nodes, so providers commonly use this hook to synthesize a placeholder master node (or otherwise reconcile the discovered list against existing records).

This is the seam currently represented by postProcessListNodes (EKS, AKS).

  • Method Details

    • postProcessNodeList

      Collection<Map> postProcessNodeList(ComputeServerGroup cluster, Collection<Map> discoveredNodes, Collection<ComputeServer> existingNodes)
      Adjust the discovered node list before Morpheus reconciles it against existing records.
      Parameters:
      cluster - the cluster being synced
      discoveredNodes - the raw node descriptors returned by the Kubernetes API
      existingNodes - the ComputeServer records Morpheus already tracks for the cluster
      Returns:
      the adjusted node list to use for reconciliation