Skip to content

Commit a901078

Browse files
committed
Add ClusterctlVariables to QuickStartSpecInput
1 parent ab7948c commit a901078

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/e2e/quick_start.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ type QuickStartSpecInput struct {
7373
// Allows to inject a function to be run after machines are provisioned.
7474
// If not specified, this is a no-op.
7575
PostMachinesProvisioned func(managementClusterProxy framework.ClusterProxy, workloadClusterNamespace, workloadClusterName string)
76+
77+
// ClusterctlVariables allows injecting variables to the cluster template.
78+
// If not specified, this is a no-op.
79+
ClusterctlVariables map[string]string
7680
}
7781

7882
// QuickStartSpec implements a spec that mimics the operation described in the Cluster API quick start, that is
@@ -143,6 +147,7 @@ func QuickStartSpec(ctx context.Context, inputGetter func() QuickStartSpecInput)
143147
KubernetesVersion: input.E2EConfig.GetVariable(KubernetesVersion),
144148
ControlPlaneMachineCount: controlPlaneMachineCount,
145149
WorkerMachineCount: workerMachineCount,
150+
ClusterctlVariables: input.ClusterctlVariables,
146151
},
147152
ControlPlaneWaiters: input.ControlPlaneWaiters,
148153
WaitForClusterIntervals: input.E2EConfig.GetIntervals(specName, "wait-cluster"),

0 commit comments

Comments
 (0)