Skip to content

Commit e45ca46

Browse files
joelanfordclaude
andauthored
šŸ› e2e: skip clusterobjectset cleanup when BoxcutterRuntime is disabled (#2662)
Scenario cleanup unconditionally attempted to delete the pre-generated clusterobjectset resource, but the CRD only exists when BoxcutterRuntime is enabled. Guard the deletion with a feature gate check. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 52bf60f commit e45ca46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ā€Žtest/e2e/steps/hooks.goā€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func ScenarioCleanup(ctx context.Context, _ *godog.Scenario, err error) (context
216216
if sc.clusterExtensionName != "" {
217217
forDeletion = append(forDeletion, resource{name: sc.clusterExtensionName, kind: "clusterextension"})
218218
}
219-
if sc.clusterObjectSetName != "" {
219+
if sc.clusterObjectSetName != "" && featureGates[features.BoxcutterRuntime] {
220220
forDeletion = append(forDeletion, resource{name: sc.clusterObjectSetName, kind: "clusterobjectset"})
221221
}
222222
forDeletion = append(forDeletion, resource{name: sc.namespace, kind: "namespace"})

0 commit comments

Comments
Ā (0)