1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #32856 from darrenstahlmsft/RemoveResourceComments

Remove comments and unused structures in Windows resources
This commit is contained in:
Sebastiaan van Stijn 2017-05-15 15:28:51 +02:00 committed by GitHub
commit 6bffb585cd

View file

@ -78,7 +78,6 @@ func (daemon *Daemon) createSpec(c *container.Container) (*specs.Spec, error) {
s.Root.Readonly = false // Windows does not support a read-only root filesystem s.Root.Readonly = false // Windows does not support a read-only root filesystem
// In s.Windows.Resources // In s.Windows.Resources
// @darrenstahlmsft implement these resources
cpuShares := uint16(c.HostConfig.CPUShares) cpuShares := uint16(c.HostConfig.CPUShares)
cpuPercent := uint8(c.HostConfig.CPUPercent) cpuPercent := uint8(c.HostConfig.CPUPercent)
cpuCount := uint64(c.HostConfig.CPUCount) cpuCount := uint64(c.HostConfig.CPUCount)
@ -108,10 +107,6 @@ func (daemon *Daemon) createSpec(c *container.Container) (*specs.Spec, error) {
}, },
Memory: &specs.WindowsMemoryResources{ Memory: &specs.WindowsMemoryResources{
Limit: &memoryLimit, Limit: &memoryLimit,
//TODO Reservation: ...,
},
Network: &specs.WindowsNetworkResources{
//TODO Bandwidth: ...,
}, },
Storage: &specs.WindowsStorageResources{ Storage: &specs.WindowsStorageResources{
Bps: &c.HostConfig.IOMaximumBandwidth, Bps: &c.HostConfig.IOMaximumBandwidth,