sandbox: Check cri-o and kubelet cgroup managers are same
We ensure that cri-o and kubelet are started with compatible cgroup managers. Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
612dcc0267
commit
cb1cad28db
3 changed files with 9 additions and 8 deletions
|
@ -490,7 +490,6 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string,
|
|||
cgPath = filepath.Join(parent, scopePrefix+"-"+containerID)
|
||||
}
|
||||
specgen.SetLinuxCgroupsPath(cgPath)
|
||||
sb.UpdateCgroupParent(parent)
|
||||
|
||||
capabilities := linux.GetSecurityContext().GetCapabilities()
|
||||
toCAPPrefixed := func(cap string) string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue