@@ -432,6 +432,8 @@ type SolarisAnet struct {
432432type Windows struct {
433433 // Resources contains information for handling resource constraints for the container.
434434 Resources * WindowsResources `json:"resources,omitempty"`
435+ // Network restriction configuration.
436+ Network * WindowsNetwork `json:"network,omitempty"`
435437}
436438
437439// WindowsResources has container runtime resource constraints for containers running on Windows.
@@ -442,8 +444,6 @@ type WindowsResources struct {
442444 CPU * WindowsCPUResources `json:"cpu,omitempty"`
443445 // Storage restriction configuration.
444446 Storage * WindowsStorageResources `json:"storage,omitempty"`
445- // Network restriction configuration.
446- Network * WindowsNetworkResources `json:"network,omitempty"`
447447}
448448
449449// WindowsMemoryResources contains memory resource management settings.
@@ -472,10 +472,16 @@ type WindowsStorageResources struct {
472472 SandboxSize * uint64 `json:"sandboxSize,omitempty"`
473473}
474474
475- // WindowsNetworkResources contains network resource management settings.
476- type WindowsNetworkResources struct {
477- // EgressBandwidth is the maximum egress bandwidth in bytes per second.
478- EgressBandwidth * uint64 `json:"egressBandwidth,omitempty"`
475+ // WindowsNetwork contains network settings for Windows containers.
476+ type WindowsNetwork struct {
477+ // List of HNS endpoints that the container should connect to.
478+ EndpointList []string `json:"endpointList,omitempty"`
479+ // Specifies if unqualified DNS name resolution is allowed.
480+ AllowUnqualifiedDNSQuery bool `json:"allowUnqualifiedDNSQuery,omitempty"`
481+ // Comma seperated list of DNS suffixes to use for name resolution.
482+ DNSSearchList []string `json:"DNSSearchList,omitempty"`
483+ // Name (ID) of the container that we will share with the network stack.
484+ NetworkSharedContainerName string `json:"networkSharedContainerName,omitempty"`
479485}
480486
481487// LinuxSeccomp represents syscall restrictions
0 commit comments