From a901078d06a5bd4861866b0b402f22210868e824 Mon Sep 17 00:00:00 2001 From: Angelos Kolaitis Date: Sat, 1 Feb 2025 09:35:08 +0200 Subject: [PATCH] Add ClusterctlVariables to QuickStartSpecInput --- test/e2e/quick_start.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/e2e/quick_start.go b/test/e2e/quick_start.go index 14d17c5d80ce..6c83800403b8 100644 --- a/test/e2e/quick_start.go +++ b/test/e2e/quick_start.go @@ -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 @@ -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"),