You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Define the move sequence by processing the ownerReference chain, so we ensure that a node is moved only after its owners.
124
-
// Additionally nodes are grouped, so bulk of nodes can be moved in parallel. e.g.
123
+
// Define the move sequence by processing the ownerReference chain, so we ensure that a Kubernetes object is moved only after its owners.
124
+
// The sequence is bases on object graph nodes, each one representing a Kubernetes object; nodes are grouped, so bulk of nodes can be moved in parallel. e.g.
125
125
// - All the Clusters should be moved first (group 1, processed in parallel)
126
126
// - All the MachineDeployments should be moved second (group 1, processed in parallel)
127
127
// - then all the MachineSets, then all the Machines, etc.
@@ -155,7 +155,7 @@ type moveSequence struct {
155
155
nodesMapmap[*node]empty
156
156
}
157
157
158
-
// moveGroup defines is a list of nodes that can be moved in parallel.
158
+
// moveGroup defines is a list of nodes read from the object graph that can be moved in parallel.
159
159
typemoveGroup []*node
160
160
161
161
func (s*moveSequence) addGroup(groupmoveGroup) {
@@ -260,10 +260,10 @@ const (
260
260
retryIntervalCreateTargetObject=1*time.Second
261
261
)
262
262
263
-
// createGroup creates all the nodes in a moveGroup into the target management cluster.
263
+
// createGroup creates all the Kubernetes objects into the target management cluster corresponding to the object graph nodes in a moveGroup.
// createTargetObject creates the Kubernetes object corresponding to the node in the target Management cluster, taking care of restoring the OwnerReference with the owner node, if any.
302
+
// createTargetObject creates the Kubernetes object in the target Management cluster corresponding to the object graph node, taking care of restoring the OwnerReference with the owner nodes, if any.
// deleteSourceObject deletes the object corresponding to the node from the source management cluster, taking care of removing all the finalizers so
438
+
// deleteSourceObject deletes the Kubernetes object corresponding to the node from the source management cluster, taking care of removing all the finalizers so
439
439
// the objects gets immediately deleted (force delete).
0 commit comments