Skip to content

Commit 069e8e1

Browse files
authored
Merge pull request opencontainers#531 from wking/pointer-omitempty
specs-go/config: Make KernelTCP and ClassID omitempty
2 parents 9c0fcee + 980ed05 commit 069e8e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

specs-go/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ type Memory struct {
262262
// Kernel memory limit (in bytes).
263263
Kernel *uint64 `json:"kernel,omitempty"`
264264
// Kernel memory limit for tcp (in bytes)
265-
KernelTCP *uint64 `json:"kernelTCP"`
265+
KernelTCP *uint64 `json:"kernelTCP,omitempty"`
266266
// How aggressive the kernel will swap memory pages. Range from 0 to 100.
267267
Swappiness *uint64 `json:"swappiness,omitempty"`
268268
}
@@ -294,7 +294,7 @@ type Pids struct {
294294
// Network identification and priority configuration
295295
type Network struct {
296296
// Set class identifier for container's network packets
297-
ClassID *uint32 `json:"classID"`
297+
ClassID *uint32 `json:"classID,omitempty"`
298298
// Set priority of network traffic for container
299299
Priorities []InterfacePriority `json:"priorities,omitempty"`
300300
}

0 commit comments

Comments
 (0)