Skip to content

Commit 4ed52d9

Browse files
committed
change security fields to optional
Signed-off-by: liangchenye <[email protected]>
1 parent fed01f4 commit 4ed52d9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

config_linux.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ type Linux struct {
3636
// Devices are a list of device nodes that are created for the container
3737
Devices []Device `json:"devices"`
3838
// ApparmorProfile specified the apparmor profile for the container.
39-
ApparmorProfile string `json:"apparmorProfile"`
39+
ApparmorProfile *string `json:"apparmorProfile,omitempty"`
4040
// SelinuxProcessLabel specifies the selinux context that the container process is run as.
41-
SelinuxProcessLabel string `json:"selinuxProcessLabel"`
41+
SelinuxProcessLabel *string `json:"selinuxProcessLabel,omitempty"`
4242
// Seccomp specifies the seccomp security settings for the container.
43-
Seccomp Seccomp `json:"seccomp"`
43+
Seccomp *Seccomp `json:"seccomp,omitempty"`
4444
// RootfsPropagation is the rootfs mount propagation mode for the container.
4545
RootfsPropagation string `json:"rootfsPropagation,omitempty"`
4646
// NoNewPrivileges controls whether additional privileges could be gained by processes in the container.

0 commit comments

Comments
 (0)