CRI-API updates for windows host networking

Signed-off-by: Mark Rossetti <marosset@microsoft.com>
This commit is contained in:
Mark Rossetti 2022-10-07 15:15:59 -07:00
parent c916f1a0eb
commit a7bafa1361
No known key found for this signature in database
GPG Key ID: 3188D8FC849D8762
2 changed files with 770 additions and 478 deletions

File diff suppressed because it is too large Load Diff

View File

@ -900,6 +900,13 @@ message LinuxContainerConfig {
LinuxContainerSecurityContext security_context = 2;
}
// WindowsNamespaceOption provides options for Windows namespaces.
message WindowsNamespaceOption {
// Network namespace for this container/sandbox.
// Namespaces currently set by the kubelet: POD, NODE
NamespaceMode network = 1;
}
// WindowsSandboxSecurityContext holds platform-specific configurations that will be
// applied to a sandbox.
// These settings will only apply to the sandbox container.
@ -914,6 +921,9 @@ message WindowsSandboxSecurityContext {
// Indicates whether the container requested to run as a HostProcess container.
bool host_process = 3;
// Configuration for the sandbox's namespaces
WindowsNamespaceOption namespace_options = 4;
}
// WindowsPodSandboxConfig holds platform-specific configurations for Windows
@ -935,6 +945,9 @@ message WindowsContainerSecurityContext {
// Indicates whether a container is to be run as a HostProcess container.
bool host_process = 3;
// Configurations for the sandbox's namespaces.
WindowsNamespaceOption namespace_options = 4;
}
// WindowsContainerConfig contains platform-specific configuration for