Add max size label for snapshots

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2026-04-23 21:36:55 -07:00
parent c8802b6e7b
commit f2b7791b23
3 changed files with 75 additions and 4 deletions

View File

@@ -39,6 +39,15 @@ const (
LabelSnapshotUIDMapping = "containerd.io/snapshot/uidmapping"
// LabelSnapshotGIDMapping is the label used for GID mappings
LabelSnapshotGIDMapping = "containerd.io/snapshot/gidmapping"
// LabelSnapshotMaxSize is a hint to the snapshotter that the active
// snapshot's filesystem should be limited to the given size, in bytes
// (decimal int64 as a string). Snapshotters that back an active
// snapshot with a block image or support filesystem quotas should
// honor this value; those that cannot enforce a size may ignore it.
// Ignoring is not a failure — callers that require enforcement must
// pick a snapshotter that supports it.
LabelSnapshotMaxSize = "containerd.io/snapshot/max-size"
)
// Kind identifies the kind of snapshot.