Skip to content

Commit

Permalink
agent: porting kata-containers/agent#616
Browse files Browse the repository at this point in the history
this PR will port the original PR to kata 2.0.

Signed-off-by: bin liu <[email protected]>
  • Loading branch information
liubin committed May 26, 2020
1 parent 478dfa4 commit f847d0d
Show file tree
Hide file tree
Showing 3 changed files with 1,139 additions and 882 deletions.
10 changes: 10 additions & 0 deletions src/agent/protocols/protos/agent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,14 @@ message TtyWinResizeRequest {
uint32 column = 4;
}

message KernelModule {
// This field is the name of the kernel module.
string name = 1;
// This field are the parameters for the kernel module which are
// whitespace-delimited key=value pairs passed to modprobe(8).
repeated string parameters = 2;
}

message CreateSandboxRequest {
string hostname = 1;
repeated string dns = 2;
Expand All @@ -288,6 +296,8 @@ message CreateSandboxRequest {
// This field, if non-empty, designates an absolute path to a directory
// that the agent will search for OCI hooks to run within the guest.
string guest_hook_path = 6;
// This field is the list of kernel modules to be loaded in the guest kernel.
repeated KernelModule kernel_modules = 7;
}

message DestroySandboxRequest {
Expand Down
Loading

0 comments on commit f847d0d

Please sign in to comment.