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, + }) }