containerd/pkg/store
Justin Terry (VM) a8cc66b37a Fix store error serialization to gRPC status codes
The pkg/store errors are duplicated errors of NotFound and AlreadyExist from
containerd's errdefs package and thus do not properly serialize when running
errdefs.ToGRPC on them. CRI runs this function on every return from a CRI
method so the conversion fails if there is a cache miss from the store caches
for containers or sandboxes. This change verifies that the errors are properly
converted to their gRPC values.

Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
2020-02-05 18:32:45 -08:00
..
container Better handle unknown state. 2019-12-06 10:56:27 -08:00
image Do not cache image handler. 2019-07-24 15:38:18 -07:00
sandbox Report Additional POD IPs 2019-09-18 17:21:37 -07:00
snapshot Fix some typos in comment 2019-01-17 15:50:46 +08:00
errors_test.go Fix store error serialization to gRPC status codes 2020-02-05 18:32:45 -08:00
errors.go Fix store error serialization to gRPC status codes 2020-02-05 18:32:45 -08:00
util.go pkg/store: use a sync.Once to synchronize channel close 2018-03-09 14:43:16 -08:00