From 25dfc4e5146b602a22a55eea5110c0e8ac96e3ed Mon Sep 17 00:00:00 2001 From: Joe Lanford Date: Fri, 17 Apr 2026 19:18:55 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20e2e:=20skip=20clusterobjectset?= =?UTF-8?q?=20cleanup=20when=20BoxcutterRuntime=20is=20disabled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- test/e2e/steps/hooks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/steps/hooks.go b/test/e2e/steps/hooks.go index 556a99638..db86a6460 100644 --- a/test/e2e/steps/hooks.go +++ b/test/e2e/steps/hooks.go @@ -216,7 +216,7 @@ func ScenarioCleanup(ctx context.Context, _ *godog.Scenario, err error) (context if sc.clusterExtensionName != "" { forDeletion = append(forDeletion, resource{name: sc.clusterExtensionName, kind: "clusterextension"}) } - if sc.clusterObjectSetName != "" { + if sc.clusterObjectSetName != "" && featureGates[features.BoxcutterRuntime] { forDeletion = append(forDeletion, resource{name: sc.clusterObjectSetName, kind: "clusterobjectset"}) } forDeletion = append(forDeletion, resource{name: sc.namespace, kind: "namespace"})