mirror of
https://github.com/containerd/containerd.git
synced 2026-11-06 13:27:16 +00:00
k8s.io/utils/exec.CodeExitError was the only remaining direct use of k8s.io/utils. Replace it with a local error type implementing the same interface. The streaming server uses this interface to distinguish commands terminating with a non-zero exit status from errors executing the command, and to propagate the exit status to the client. Add a FIXME to define this error contract in k8s.io/cri-streaming, where it is consumed, instead of requiring runtime implementations to implicitly match k8s.io/utils/exec.ExitError. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>