Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#10910 from chrischdi/pr-test-skipc…
Browse files Browse the repository at this point in the history
…leanup-clusterctl-upgrade

🌱 test: skip cleanup of additional kind cluster if flag is set
  • Loading branch information
k8s-ci-robot authored Jul 19, 2024
2 parents ad97dc5 + 35cfdaa commit de39402
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/e2e/clusterctl_upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -745,8 +745,10 @@ func ClusterctlUpgradeSpec(ctx context.Context, inputGetter func() ClusterctlUpg

// Dumps all the resources in the spec namespace, then cleanups the cluster object and the spec namespace itself.
if input.UseKindForManagementCluster {
managementClusterProxy.Dispose(ctx)
managementClusterProvider.Dispose(ctx)
if !input.SkipCleanup {
managementClusterProxy.Dispose(ctx)
managementClusterProvider.Dispose(ctx)
}
} else {
framework.DumpSpecResourcesAndCleanup(ctx, specName, input.BootstrapClusterProxy, input.ArtifactFolder, managementClusterNamespace, managementClusterCancelWatches, managementClusterResources.Cluster, input.E2EConfig.GetIntervals, input.SkipCleanup)
}
Expand Down

0 comments on commit de39402

Please sign in to comment.