From 6d2e36bf5a76a04c13cb89588ba36d6acffb0705 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Thu, 26 Sep 2024 20:39:01 -0700 Subject: [PATCH] add capability to detect if new storage filters are supported Signed-off-by: Tonis Tiigi --- solver/pb/caps.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/solver/pb/caps.go b/solver/pb/caps.go index 2ef56039e5981..00834168e8d04 100644 --- a/solver/pb/caps.go +++ b/solver/pb/caps.go @@ -91,6 +91,9 @@ const ( CapMultipleExporters apicaps.CapID = "exporter.multiple" CapSourcePolicy apicaps.CapID = "source.policy" + + // GC/Prune controls allow FreeStorage and MaxStorage to be set + CapGCFreeSpaceFilter apicaps.CapID = "gc.freespacefilter" ) func init() { @@ -488,4 +491,10 @@ func init() { Enabled: true, Status: apicaps.CapStatusExperimental, }) + + Caps.Init(apicaps.Cap{ + ID: CapGCFreeSpaceFilter, + Enabled: true, + Status: apicaps.CapStatusExperimental, + }) }