Skip to content

Commit 2033585

Browse files
committed
Work around changes to CAPI test func NewClusterProxy
1 parent ef1f47d commit 2033585

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/e2e/e2e_suite_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import (
3232

3333
. "github.com/onsi/ginkgo/v2"
3434
. "github.com/onsi/gomega"
35+
"k8s.io/client-go/tools/clientcmd"
3536
"k8s.io/klog/v2"
3637
capi_e2e "sigs.k8s.io/cluster-api/test/e2e"
3738
"sigs.k8s.io/cluster-api/test/framework"
@@ -171,6 +172,7 @@ func setupBootstrapCluster(config *clusterctl.E2EConfig, useExistingCluster bool
171172
kubeconfigPath = clusterProvider.GetKubeconfigPath()
172173
Expect(kubeconfigPath).To(BeAnExistingFile(), "Failed to get the kubeconfig file for the bootstrap cluster")
173174
} else {
175+
kubeconfigPath = clientcmd.NewDefaultClientConfigLoadingRules().GetDefaultFilename()
174176
// @sonasingh46: Workaround for testing workload identity.
175177
// Loading image for already created cluster
176178
imagesInput := bootstrap.LoadImagesToKindClusterInput{

0 commit comments

Comments
 (0)