Merge pull request #119 from mikebrow/add-sysctls

Sets sysctls from pod config annotations
This commit is contained in:
Lantao Liu
2017-08-09 18:23:15 -07:00
committed by GitHub

View File

@@ -306,7 +306,11 @@ func (c *criContainerdService) generateSandboxContainerSpec(id string, config *r
// TODO(random-liu): [P1] Set privileged.
// TODO(random-liu): [P2] Set sysctl from annotations.
// Add sysctls
sysctls := config.GetLinux().GetSysctls()
for key, value := range sysctls {
g.AddLinuxSysctl(key, value)
}
// TODO(random-liu): [P2] Set apparmor and seccomp from annotations.