Skip to content

Commit f973e33

Browse files
authored
Merge pull request #6217 from sbueringer/pr-improve-e2e-logging
🌱 test/e2e: log if a new cluster is created or an existing is used
2 parents 207e2a8 + 44c96fb commit f973e33

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/e2e/e2e_suite_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ func setupBootstrapCluster(config *clusterctl.E2EConfig, scheme *runtime.Scheme,
212212
var clusterProvider bootstrap.ClusterProvider
213213
kubeconfigPath := ""
214214
if !useExistingCluster {
215+
By("Creating the bootstrap cluster")
215216
clusterProvider = bootstrap.CreateKindBootstrapClusterAndLoadImages(ctx, bootstrap.CreateKindBootstrapClusterAndLoadImagesInput{
216217
Name: config.ManagementClusterName,
217218
KubernetesVersion: config.GetVariable(KubernetesVersionManagement),
@@ -224,6 +225,8 @@ func setupBootstrapCluster(config *clusterctl.E2EConfig, scheme *runtime.Scheme,
224225

225226
kubeconfigPath = clusterProvider.GetKubeconfigPath()
226227
Expect(kubeconfigPath).To(BeAnExistingFile(), "Failed to get the kubeconfig file for the bootstrap cluster")
228+
} else {
229+
By("Using an existing bootstrap cluster")
227230
}
228231

229232
clusterProxy := framework.NewClusterProxy("bootstrap", kubeconfigPath, scheme)

0 commit comments

Comments
 (0)