Skip to content

Commit 25dfc4e

Browse files
joelanfordclaude
andcommitted
🐛 e2e: skip clusterobjectset cleanup when BoxcutterRuntime is disabled
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 2b2669f commit 25dfc4e

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)