@@ -164,9 +164,11 @@ func dumpSpecResourcesAndCleanup(ctx context.Context, input cleanupInput) {
164
164
Logf ("Dumping all the Cluster API resources in the %q namespace" , input .Namespace .Name )
165
165
// Dump all Cluster API related resources to artifacts before deleting them.
166
166
framework .DumpAllResources (ctx , framework.DumpAllResourcesInput {
167
- Lister : input .ClusterProxy .GetClient (),
168
- Namespace : input .Namespace .Name ,
169
- LogPath : filepath .Join (input .ArtifactFolder , "clusters" , input .ClusterProxy .GetName (), "resources" ),
167
+ Lister : input .ClusterProxy .GetClient (),
168
+ KubeConfigPath : input .ClusterProxy .GetKubeconfigPath (),
169
+ ClusterctlConfigPath : clusterctlConfigPath ,
170
+ Namespace : input .Namespace .Name ,
171
+ LogPath : filepath .Join (input .ArtifactFolder , "clusters" , input .ClusterProxy .GetName (), "resources" ),
170
172
})
171
173
172
174
if input .Cluster == nil {
@@ -189,9 +191,10 @@ func dumpSpecResourcesAndCleanup(ctx context.Context, input cleanupInput) {
189
191
deleteTimeoutConfig = "wait-delete-cluster-aks"
190
192
}
191
193
framework .DeleteAllClustersAndWait (ctx , framework.DeleteAllClustersAndWaitInput {
192
- ClusterProxy : input .ClusterProxy ,
193
- Namespace : input .Namespace .Name ,
194
- ArtifactFolder : input .ArtifactFolder ,
194
+ ClusterProxy : input .ClusterProxy ,
195
+ ClusterctlConfigPath : clusterctlConfigPath ,
196
+ Namespace : input .Namespace .Name ,
197
+ ArtifactFolder : input .ArtifactFolder ,
195
198
}, input .IntervalsGetter (input .SpecName , deleteTimeoutConfig )... )
196
199
197
200
Logf ("Deleting namespace used for hosting the %q test spec" , input .SpecName )
0 commit comments