From a31a088665d1bcee3488b874fc0f1f056739cf22 Mon Sep 17 00:00:00 2001 From: Yash Murty Date: Tue, 30 Apr 2019 15:13:08 +0700 Subject: [PATCH] Remove DiskQouta field. Signed-off-by: Yash Murty --- api/swagger.yaml | 4 ---- api/types/container/host_config.go | 1 - container/container_windows.go | 1 - 3 files changed, 6 deletions(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index 76d21509ac..b129ed7fde 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -463,10 +463,6 @@ definitions: type: "array" items: $ref: "#/definitions/DeviceRequest" - DiskQuota: - description: "Disk limit (in bytes)." - type: "integer" - format: "int64" KernelMemory: description: "Kernel memory limit in bytes." type: "integer" diff --git a/api/types/container/host_config.go b/api/types/container/host_config.go index c710107702..c3de3d976a 100644 --- a/api/types/container/host_config.go +++ b/api/types/container/host_config.go @@ -338,7 +338,6 @@ type Resources struct { Devices []DeviceMapping // List of devices to map inside the container DeviceCgroupRules []string // List of rule to be added to the device cgroup DeviceRequests []DeviceRequest // List of device requests for device drivers - DiskQuota int64 // Disk limit (in bytes) KernelMemory int64 // Kernel memory limit (in bytes) KernelMemoryTCP int64 // Hard limit for kernel TCP buffer memory (in bytes) MemoryReservation int64 // Memory soft limit (in bytes) diff --git a/container/container_windows.go b/container/container_windows.go index 181750b30d..719caca4f6 100644 --- a/container/container_windows.go +++ b/container/container_windows.go @@ -153,7 +153,6 @@ func (container *Container) UpdateContainer(hostConfig *containertypes.HostConfi resources.CpusetMems != "" || len(resources.Devices) != 0 || len(resources.DeviceCgroupRules) != 0 || - resources.DiskQuota != 0 || resources.KernelMemory != 0 || resources.MemoryReservation != 0 || resources.MemorySwap != 0 ||