Skip to content

Commit ef9ce84

Browse files
author
Ma Shimiao
committed
specs-go/config: fix required items type
Signed-off-by: Ma Shimiao <[email protected]>
1 parent e91c55e commit ef9ce84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

specs-go/config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ type LinuxRlimit struct {
208208
// LinuxHugepageLimit structure corresponds to limiting kernel hugepages
209209
type LinuxHugepageLimit struct {
210210
// Pagesize is the hugepage size
211-
Pagesize *string `json:"pageSize,omitempty"`
211+
Pagesize string `json:"pageSize"`
212212
// Limit is the limit of "hugepagesize" hugetlb usage
213-
Limit *uint64 `json:"limit,omitempty"`
213+
Limit uint64 `json:"limit"`
214214
}
215215

216216
// LinuxInterfacePriority for network interfaces
@@ -242,7 +242,7 @@ type LinuxWeightDevice struct {
242242
type LinuxThrottleDevice struct {
243243
linuxBlockIODevice
244244
// Rate is the IO rate limit per cgroup per device
245-
Rate *uint64 `json:"rate,omitempty"`
245+
Rate uint64 `json:"rate"`
246246
}
247247

248248
// LinuxBlockIO for Linux cgroup 'blkio' resource management
@@ -300,7 +300,7 @@ type LinuxCPU struct {
300300
// LinuxPids for Linux cgroup 'pids' resource management (Linux 4.3)
301301
type LinuxPids struct {
302302
// Maximum number of PIDs. Default is "no limit".
303-
Limit *int64 `json:"limit,omitempty"`
303+
Limit int64 `json:"limit"`
304304
}
305305

306306
// LinuxNetwork identification and priority configuration

0 commit comments

Comments
 (0)