We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc1f956 commit f3c156dCopy full SHA for f3c156d
info.go
@@ -51,16 +51,11 @@ func hostInfo() map[string]any {
51
info["cpus"] = runtime.NumCPU()
52
info["rootless"] = unshare.IsRootless()
53
54
- unified, err := cgroups.IsCgroup2UnifiedMode()
+ _, err := cgroups.IsCgroup2UnifiedMode()
55
if err != nil {
56
logrus.Error(err, "err reading cgroups mode")
57
}
58
- cgroupVersion := "v1"
59
ociruntime := util.Runtime()
60
- if unified {
61
- cgroupVersion = "v2"
62
- }
63
- info["CgroupVersion"] = cgroupVersion
64
info["OCIRuntime"] = ociruntime
65
66
mi, err := system.ReadMemInfo()
0 commit comments