Skip to content

Commit

Permalink
add capability to detect if new storage filters are supported
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
  • Loading branch information
tonistiigi committed Sep 27, 2024
1 parent 6ad6180 commit 7c49c22
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions solver/pb/caps.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -488,4 +491,10 @@ func init() {
Enabled: true,
Status: apicaps.CapStatusExperimental,
})

Caps.Init(apicaps.Cap{
ID: CapGCFreeSpaceFilter,
Enabled: true,
Status: apicaps.CapStatusExperimental,
})
}

0 comments on commit 7c49c22

Please sign in to comment.