Skip to content

Commit 5bf1eb6

Browse files
committed
E2E: WaitForMachinesReady to ApplyClusterTemplateAndWaitInput
1 parent 34a3824 commit 5bf1eb6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/framework/clusterctl/clusterctl_helpers.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ type ApplyClusterTemplateAndWaitInput struct {
186186
WaitForMachinePools []interface{}
187187
Args []string // extra args to be used during `kubectl apply`
188188
PreWaitForCluster func()
189+
PostMachinesProvisioned func()
189190
ControlPlaneWaiters
190191
}
191192

@@ -327,6 +328,11 @@ func ApplyClusterTemplateAndWait(ctx context.Context, input ApplyClusterTemplate
327328
Lister: input.ClusterProxy.GetClient(),
328329
Cluster: result.Cluster,
329330
}, input.WaitForMachinePools...)
331+
332+
if input.PostMachinesProvisioned != nil {
333+
log.Logf("Calling PostMachinesProvisioned")
334+
input.PostMachinesProvisioned()
335+
}
330336
}
331337

332338
// setDefaults sets the default values for ApplyClusterTemplateAndWaitInput if not set.

0 commit comments

Comments
 (0)