Skip to content

Commit 0d48450

Browse files
committed
Add Kubeconfig and Cluster config path while deleting the cluster in e2e
1 parent d78de2f commit 0d48450

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/e2e/e2e_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,11 @@ func dumpSpecResourcesAndCleanup(ctx context.Context, input cleanupInput) {
204204
Byf("Dumping all the Cluster API resources in the %q namespace", input.Namespace.Name)
205205
// Dump all Cluster API related resources to artifacts before deleting them.
206206
framework.DumpAllResources(ctx, framework.DumpAllResourcesInput{
207-
Lister: input.ClusterProxy.GetClient(),
208-
Namespace: input.Namespace.Name,
209-
LogPath: filepath.Join(input.ArtifactFolder, "clusters", input.ClusterProxy.GetName(), "resources"),
207+
Lister: input.ClusterProxy.GetClient(),
208+
KubeConfigPath: input.ClusterProxy.GetKubeconfigPath(),
209+
ClusterctlConfigPath: input.ClusterConfigPath,
210+
Namespace: input.Namespace.Name,
211+
LogPath: filepath.Join(input.ArtifactFolder, "clusters", input.ClusterProxy.GetName(), "resources"),
210212
})
211213

212214
if input.SkipCleanup {

0 commit comments

Comments
 (0)