vendor: Bump cAdvisor to v0.45.0

Signed-off-by: David Porter <david@porter.me>
This commit is contained in:
David Porter
2022-08-02 13:53:04 -07:00
parent 1a916f278b
commit d9fda8ab3b
37 changed files with 618 additions and 177 deletions

View File

@@ -155,9 +155,7 @@ func New(memoryCache *memory.InMemoryCache, sysfs sysfs.SysFs, houskeepingConfig
selfContainer := "/"
var err error
// Avoid using GetOwnCgroupPath on cgroup v2 as it is not supported by libcontainer
if cgroups.IsCgroup2UnifiedMode() {
klog.Warningf("Cannot detect current cgroup on cgroup v2")
} else {
if !cgroups.IsCgroup2UnifiedMode() {
selfContainer, err = cgroups.GetOwnCgroup("cpu")
if err != nil {
return nil, err