Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#6217 from sbueringer/pr-improve-e2…
Browse files Browse the repository at this point in the history
…e-logging

🌱 test/e2e: log if a new cluster is created or an existing is used
  • Loading branch information
k8s-ci-robot authored Mar 1, 2022
2 parents 207e2a8 + 44c96fb commit f973e33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ func setupBootstrapCluster(config *clusterctl.E2EConfig, scheme *runtime.Scheme,
var clusterProvider bootstrap.ClusterProvider
kubeconfigPath := ""
if !useExistingCluster {
By("Creating the bootstrap cluster")
clusterProvider = bootstrap.CreateKindBootstrapClusterAndLoadImages(ctx, bootstrap.CreateKindBootstrapClusterAndLoadImagesInput{
Name: config.ManagementClusterName,
KubernetesVersion: config.GetVariable(KubernetesVersionManagement),
Expand All @@ -224,6 +225,8 @@ func setupBootstrapCluster(config *clusterctl.E2EConfig, scheme *runtime.Scheme,

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

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

0 comments on commit f973e33

Please # to comment.