Package com.morpheusdata.core.providers
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 Summary
Modifier and TypeMethodDescriptionpostProcessNodeList(ComputeServerGroup cluster, Collection<Map> discoveredNodes, Collection<ComputeServer> existingNodes) Adjust the discovered node list before Morpheus reconciles it against existing records.
-
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 synceddiscoveredNodes- the raw node descriptors returned by the Kubernetes APIexistingNodes- theComputeServerrecords Morpheus already tracks for the cluster- Returns:
- the adjusted node list to use for reconciliation
-