Skip to content

Commit 3dbb12b

Browse files
authored
Merge pull request #4002 from Skarlso/fix_cluster_dumper
Fix AWS CloudFormation dump after failed suit when there is no bootstrap cluster
2 parents cb4b913 + 3b96091 commit 3dbb12b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/e2e/shared/aws.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,11 @@ func (s *ServiceQuota) updateServiceQuotaRequestStatus(serviceQuotasClient *serv
859859
}
860860

861861
func DumpEKSClusters(ctx context.Context, e2eCtx *E2EContext) {
862-
logPath := filepath.Join(e2eCtx.Settings.ArtifactFolder, "clusters", e2eCtx.Environment.BootstrapClusterProxy.GetName(), "aws-resources")
862+
name := "no-bootstrap-cluster"
863+
if e2eCtx.Environment.BootstrapClusterProxy != nil {
864+
name = e2eCtx.Environment.BootstrapClusterProxy.GetName()
865+
}
866+
logPath := filepath.Join(e2eCtx.Settings.ArtifactFolder, "clusters", name, "aws-resources")
863867
if err := os.MkdirAll(logPath, os.ModePerm); err != nil {
864868
fmt.Fprintf(GinkgoWriter, "couldn't create directory: path=%s, err=%s", logPath, err)
865869
}

0 commit comments

Comments
 (0)