Add docs and tests for Transfer Service by ktock · Pull Request #2084 · containerd/stargz-snapshotter (original) (raw)
Transfer Service is enabled in CRI by default since containerd v2.1. However, when the CRI plugin finds disable_snapshot_annotations = false in containerd's config.toml, it doesn't enable Transfer Service and falls back to the traditional client-library-based pulling. (c.f. docs). So if user preserve disable_snapshot_annotations = false in the config, the user can expect the traditional (non-Transfer-Service) behaviour without breaking lazy pulling behaviour.
If the user wants to enable Transfer Service, additional configuration is needed and this commit adds a doc about it.
Tests are also added for continuously checking if stargz snapshotter works with enabling Transfer Service.