From f7694ceec9d3c9cf0d620941003ab50e57b46769 Mon Sep 17 00:00:00 2001 From: Amulyam24 Date: Fri, 11 Apr 2025 17:57:15 +0530 Subject: [PATCH] Add kubeconfig and cluster config path while deleting the cluster in e2e --- test/e2e/e2e_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/e2e/e2e_test.go b/test/e2e/e2e_test.go index de29feffb..07135217d 100644 --- a/test/e2e/e2e_test.go +++ b/test/e2e/e2e_test.go @@ -204,9 +204,11 @@ func dumpSpecResourcesAndCleanup(ctx context.Context, input cleanupInput) { Byf("Dumping all the Cluster API resources in the %q namespace", input.Namespace.Name) // Dump all Cluster API related resources to artifacts before deleting them. framework.DumpAllResources(ctx, framework.DumpAllResourcesInput{ - Lister: input.ClusterProxy.GetClient(), - Namespace: input.Namespace.Name, - LogPath: filepath.Join(input.ArtifactFolder, "clusters", input.ClusterProxy.GetName(), "resources"), + Lister: input.ClusterProxy.GetClient(), + KubeConfigPath: input.ClusterProxy.GetKubeconfigPath(), + ClusterctlConfigPath: input.ClusterConfigPath, + Namespace: input.Namespace.Name, + LogPath: filepath.Join(input.ArtifactFolder, "clusters", input.ClusterProxy.GetName(), "resources"), }) if input.SkipCleanup {