mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #20395 from jimmidyson/system-container-fix
Auto commit by PR queue bot
This commit is contained in:
commit
c8e5e89491
@ -405,7 +405,7 @@ func ensureSystemContainer(rootContainer *fs.Manager, manager *fs.Manager) error
|
|||||||
// Remove kernel pids and other protected PIDs (pid 1, PIDs already in system & kubelet containers)
|
// Remove kernel pids and other protected PIDs (pid 1, PIDs already in system & kubelet containers)
|
||||||
pids := make([]int, 0, len(allPids))
|
pids := make([]int, 0, len(allPids))
|
||||||
for _, pid := range allPids {
|
for _, pid := range allPids {
|
||||||
if isKernelPid(pid) {
|
if pid == 1 || isKernelPid(pid) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user