1- //go:build integration
2- // +build integration
3-
41package frmwrk
52
63import (
@@ -66,16 +63,10 @@ func createE2ECluster(ctx context.Context, e2eCtx *E2EContext, cfg ClusterConfig
6663 ec .GenerateAndApplyClusterTemplate (ctx )
6764
6865 By ("Wait for cluster" )
69- cluster := framework .DiscoveryAndWaitForCluster (ctx , framework.DiscoveryAndWaitForClusterInput {
70- Namespace : ec .NamespaceName ,
71- Name : ec .ClusterName ,
72- Getter : e2eCtx .Environment .Bootstrap .GetClient (),
73- }, e2eCtx .E2EConfig .GetIntervals ("default" , "wait-cluster" )... )
74-
7566 controlPlane := framework .GetKubeadmControlPlaneByCluster (ctx , framework.GetKubeadmControlPlaneByClusterInput {
7667 Lister : e2eCtx .Environment .Bootstrap .GetClient (),
77- ClusterName : cluster .Name ,
78- Namespace : cluster .Namespace ,
68+ ClusterName : ec . Refs . Cluster .Name ,
69+ Namespace : ec . Refs . Cluster .Namespace ,
7970 })
8071
8172 Expect (controlPlane ).To (Not (BeNil ()))
@@ -97,11 +88,11 @@ func createE2ECluster(ctx context.Context, e2eCtx *E2EContext, cfg ClusterConfig
9788 By ("Wait for kubeadm control plane" )
9889 framework .DiscoveryAndWaitForControlPlaneInitialized (ctx , framework.DiscoveryAndWaitForControlPlaneInitializedInput {
9990 Lister : e2eCtx .Environment .Bootstrap .GetClient (),
100- Cluster : cluster ,
91+ Cluster : ec . Refs . Cluster ,
10192 }, e2eCtx .E2EConfig .GetIntervals ("default" , "wait-control-plane" )... )
10293
10394 framework .WaitForClusterToProvision (ctx , framework.WaitForClusterToProvisionInput {
104- Cluster : cluster ,
95+ Cluster : ec . Refs . Cluster ,
10596 Getter : e2eCtx .Environment .Bootstrap .GetClient (),
10697 }, e2eCtx .E2EConfig .GetIntervals ("default" , "wait-cluster-provisioned" )... )
10798 return ec
0 commit comments