Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions test/e2e/steps/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,6 @@ func ScenarioCleanup(ctx context.Context, _ *godog.Scenario, err error) (context
}

forDeletion := sc.addedResources
if sc.clusterObjectSetName != "" && featureGates[features.BoxcutterRuntime] {
forDeletion = append(forDeletion, resource{name: sc.clusterObjectSetName, kind: "clusterobjectset"})
}
for _, catalogName := range sc.catalogs {
forDeletion = append(forDeletion, resource{name: catalogName, kind: "clustercatalog"})
}
Expand Down
1 change: 1 addition & 0 deletions test/e2e/steps/steps.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ func ResourceIsApplied(ctx context.Context, yamlTemplate *godog.DocString) error
sc.addedResources = append(sc.addedResources, resource{name: res.GetName(), kind: "clusterextension"})
} else if res.GetKind() == "ClusterObjectSet" {
sc.clusterObjectSetName = res.GetName()
sc.addedResources = append(sc.addedResources, resource{name: res.GetName(), kind: "clusterobjectset"})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick (non-blocking): clusterObjectSetName is still assigned here but cleanup has moved to addedResources. A short inline comment noting this field now only serves ${COS_NAME} substitution would help future readers understand why it is still set.

} else {
namespace := res.GetNamespace()
if namespace == "" {
Expand Down