@@ -440,6 +440,8 @@ type Windows struct {
440440 IgnoreFlushesDuringBoot bool `json:"ignoreflushesduringboot,omitempty"`
441441 // HyperV contains information for running a container with Hyper-V isolation.
442442 HyperV * WindowsHyperV `json:"hyperv,omitempty"`
443+ // Network restriction configuration.
444+ Network * WindowsNetwork `json:"network,omitempty"`
443445}
444446
445447// WindowsResources has container runtime resource constraints for containers running on Windows.
@@ -450,8 +452,6 @@ type WindowsResources struct {
450452 CPU * WindowsCPUResources `json:"cpu,omitempty"`
451453 // Storage restriction configuration.
452454 Storage * WindowsStorageResources `json:"storage,omitempty"`
453- // Network restriction configuration.
454- Network * WindowsNetworkResources `json:"network,omitempty"`
455455}
456456
457457// WindowsMemoryResources contains memory resource management settings.
@@ -480,10 +480,16 @@ type WindowsStorageResources struct {
480480 SandboxSize * uint64 `json:"sandboxSize,omitempty"`
481481}
482482
483- // WindowsNetworkResources contains network resource management settings.
484- type WindowsNetworkResources struct {
485- // EgressBandwidth is the maximum egress bandwidth in bytes per second.
486- EgressBandwidth * uint64 `json:"egressBandwidth,omitempty"`
483+ // WindowsNetwork contains network settings for Windows containers.
484+ type WindowsNetwork struct {
485+ // List of HNS endpoints that the container should connect to.
486+ EndpointList []string `json:"endpointList,omitempty"`
487+ // Specifies if unqualified DNS name resolution is allowed.
488+ AllowUnqualifiedDNSQuery bool `json:"allowUnqualifiedDNSQuery,omitempty"`
489+ // Comma seperated list of DNS suffixes to use for name resolution.
490+ DNSSearchList []string `json:"DNSSearchList,omitempty"`
491+ // Name (ID) of the container that we will share with the network stack.
492+ NetworkSharedContainerName string `json:"networkSharedContainerName,omitempty"`
487493}
488494
489495// WindowsHyperV contains information for configuring a container to run with Hyper-V isolation.
0 commit comments