Skip to content

Commit

Permalink
runtime-rs: Forward events to containerd via ttrpc
Browse files Browse the repository at this point in the history
It is a little bit heavy for the runtime-rs to forwards events via
containerd CLI, contrast to the ttrpc way. Plus, for runtimes that haven't
this mechanism, e.g. CRI-O, we can't get those events anywhere.

This patch introduces two types of forwarders:

- `ContainerdForwarder`: Acquire ttrpc address from environment variables
  and forward events via ttrpc connection.
- `LogForwarder`: Write event info into logs.

Fixes: #7881

Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com>
  • Loading branch information
justxuewei committed Jan 6, 2024
1 parent 192c6ee commit 5b5e397
Show file tree
Hide file tree
Showing 6 changed files with 482 additions and 85 deletions.

0 comments on commit 5b5e397

Please sign in to comment.