containerd / accelerated-container-image

A production-ready remote container image format (overlaybd) and snapshotter based on block-device.
Apache License 2.0
409 stars 75 forks source link

Overlaybd versioning strategy #169

Closed northtyphoon closed 1 year ago

northtyphoon commented 1 year ago

Want to start a thread to discuss the general versioning strategy.

We need to way to know if the converted images can work with previous or future version of overlaybd driver. If image convertor introduces any breaking change, we need a way to check the version to know if it can work with current runtime setup.

We are wondering if we can start to include a version annotation in the manifest.

"annotations": { "containerd.io/snapshot/overlaybd/version": "0.1.0" }

"annotations": { "containerd.io/snapshot/fastoci/version": "0.1.0" }

BigVan commented 1 year ago

A label to show the version number is needed. I think 'fastoci' is a sub-type of overlaybd, so the version maybe:

"annotations": { "containerd.io/snapshot/overlaybd/version": "0.1.0" // for normal overlaybd-image "containerd.io/snapshot/overlaybd/version": "0.1.0-fastoci" // for fastOCI index }