diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-10-01 10:53:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-01 10:53:14 -0400 |
commit | 81aabc80545873a1ea6f7707a904997f1b400855 (patch) | |
tree | f918ca6a05abcf0be9e7155ca6554a42549244c8 /pkg/domain/entities | |
parent | 285c9ec69b7c48467d183d2507cbd4163b9c21c9 (diff) | |
parent | 2d86051893fc2e813f26c16d13786bb377c26d48 (diff) | |
download | podman-81aabc80545873a1ea6f7707a904997f1b400855.tar.gz podman-81aabc80545873a1ea6f7707a904997f1b400855.tar.bz2 podman-81aabc80545873a1ea6f7707a904997f1b400855.zip |
Merge pull request #11686 from cdoern/podDeviceOptions
Pod Device-Read-BPS support
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r-- | pkg/domain/entities/pods.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/domain/entities/pods.go b/pkg/domain/entities/pods.go index f0c88d77e..0356383ec 100644 --- a/pkg/domain/entities/pods.go +++ b/pkg/domain/entities/pods.go @@ -119,6 +119,7 @@ type PodCreateOptions struct { CGroupParent string `json:"cgroup_parent,omitempty"` CreateCommand []string `json:"create_command,omitempty"` Devices []string `json:"devices,omitempty"` + DeviceReadBPs []string `json:"device_read_bps,omitempty"` Hostname string `json:"hostname,omitempty"` Infra bool `json:"infra,omitempty"` InfraImage string `json:"infra_image,omitempty"` @@ -167,7 +168,7 @@ type ContainerCreateOptions struct { CPUSetMems string Devices []string `json:"devices,omitempty"` DeviceCGroupRule []string - DeviceReadBPs []string + DeviceReadBPs []string `json:"device_read_bps,omitempty"` DeviceReadIOPs []string DeviceWriteBPs []string DeviceWriteIOPs []string @@ -200,7 +201,7 @@ type ContainerCreateOptions struct { MemoryReservation string MemorySwap string MemorySwappiness int64 - Name string `json:"container_name,omitempty"` + Name string `json:"container_name"` NoHealthCheck bool OOMKillDisable bool OOMScoreAdj int |