Skip to content

Commit

Permalink
Merge pull request #11780 from neoaggelos/quick-start-spec
Browse files Browse the repository at this point in the history
🌱 Add optional ClusterctlVariables to QuickStartSpecInput
  • Loading branch information
k8s-ci-robot authored Feb 3, 2025
2 parents de183c8 + a901078 commit ffd15a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/e2e/quick_start.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ type QuickStartSpecInput struct {
// Allows to inject a function to be run after machines are provisioned.
// If not specified, this is a no-op.
PostMachinesProvisioned func(managementClusterProxy framework.ClusterProxy, workloadClusterNamespace, workloadClusterName string)

// ClusterctlVariables allows injecting variables to the cluster template.
// If not specified, this is a no-op.
ClusterctlVariables map[string]string
}

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

0 comments on commit ffd15a9

Please sign in to comment.