-
Notifications
You must be signed in to change notification settings - Fork 354
Closed
Labels
Description
Considering
Line 52 in bc932d6
| fields := strings.Split(cgroupStr, ":") |
Colons may be inserted, for example when running kubernetes with containerd using a systemd cgroup-driver.
See:
And how containerd parses the file: https://github.com/containerd/cgroups/blob/8a68de567b68b30602948417a7a8e99ccf00ee9b/utils.go#L305
Changing:
fields := strings.Split(cgroupStr, ":")
to
fields := strings.SplitN(cgroupStr, ":", 3)
should address this.