Skip to content

Commit a75b5eb

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

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
@@ -92,6 +92,9 @@ const (
9292
CapMultipleExporters apicaps.CapID = "exporter.multiple"
9393

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

97100
func init() {
@@ -489,4 +492,10 @@ func init() {
489492
Enabled: true,
490493
Status: apicaps.CapStatusExperimental,
491494
})
495+
496+
Caps.Init(apicaps.Cap{
497+
ID: CapGCFreeSpaceFilter,
498+
Enabled: true,
499+
Status: apicaps.CapStatusExperimental,
500+
})
492501
}

0 commit comments

Comments
 (0)