From fb85ea16e5605a6533ff12cb7c618990aaf42bf6 Mon Sep 17 00:00:00 2001
From: Philip Gough <philip.p.gough@gmail.com>
Date: Mon, 24 Mar 2025 17:23:44 +0000
Subject: [PATCH] Disable max compaction level for historic compactor

---
 magefiles/cr.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/magefiles/cr.go b/magefiles/cr.go
index 25d783b3f0..362e09f14b 100644
--- a/magefiles/cr.go
+++ b/magefiles/cr.go
@@ -903,7 +903,7 @@ func compactTempProduction() []runtime.Object {
 			DebugConfig: &v1alpha1.DebugConfig{
 				AcceptMalformedIndex: ptr.To(true),
 				HaltOnError:          ptr.To(true),
-				MaxCompactionLevel:   nil,
+				MaxCompactionLevel:   ptr.To(int32(10000)),
 			},
 			StorageSize: v1alpha1.StorageSize("500Gi"),
 			FeatureGates: &v1alpha1.FeatureGates{