Skip to content

Commit 8068fcc

Browse files
committed
add capability to detect if new storage filters are supported
Signed-off-by: Tonis Tiigi <[email protected]>
1 parent da7fafc commit 8068fcc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

solver/pb/caps.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ const (
9191
CapMultipleExporters apicaps.CapID = "exporter.multiple"
9292

9393
CapSourcePolicy apicaps.CapID = "source.policy"
94+
95+
// GC/Prune controls allow FreeStorage and MaxStorage to be set
96+
CapGCFreeSpaceFilter apicaps.CapID = "gc.freespacefilter"
9497
)
9598

9699
func init() {
@@ -488,4 +491,10 @@ func init() {
488491
Enabled: true,
489492
Status: apicaps.CapStatusExperimental,
490493
})
494+
495+
Caps.Init(apicaps.Cap{
496+
ID: CapGCFreeSpaceFilter,
497+
Enabled: true,
498+
Status: apicaps.CapStatusExperimental,
499+
})
491500
}

0 commit comments

Comments
 (0)