mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
Merge pull request #109347 from HirazawaUi/master
the err of "GetKubeletContainer" function should not affect the value of "RuntimeCgroups"
This commit is contained in:
commit
d05780e38d
@ -622,9 +622,7 @@ func run(ctx context.Context, s *options.KubeletServer, kubeDeps *kubelet.Depend
|
|||||||
cgroupRoots = append(cgroupRoots, kubeletCgroup)
|
cgroupRoots = append(cgroupRoots, kubeletCgroup)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if s.RuntimeCgroups != "" {
|
||||||
klog.InfoS("Failed to get the container runtime's cgroup. Runtime system container metrics may be missing.", "err", err)
|
|
||||||
} else if s.RuntimeCgroups != "" {
|
|
||||||
// RuntimeCgroups is optional, so ignore if it isn't specified
|
// RuntimeCgroups is optional, so ignore if it isn't specified
|
||||||
cgroupRoots = append(cgroupRoots, s.RuntimeCgroups)
|
cgroupRoots = append(cgroupRoots, s.RuntimeCgroups)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user