Skip to content

Commit 871db6a

Browse files
committed
Update to Windows network options
Signed-off-by: Darren Stahl <[email protected]>
1 parent 844f392 commit 871db6a

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

specs-go/config.go

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,8 @@ type SolarisAnet struct {
432432
type 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

Comments
 (0)