Merge pull request #705 from yamt/cg

Appease kubelet warnings on docker for mac
This commit is contained in:
Darren Shepherd 2019-08-15 17:13:14 -07:00 committed by GitHub
commit 99716deb08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,6 +176,8 @@ func checkCgroups() (root string, hasCFS bool, hasPIDs bool) {
i := strings.LastIndex(last, ".slice")
if i > 0 {
root = "/systemd" + last[:i+len(".slice")]
} else {
root = "/systemd"
}
}
}