Merge pull request #705 from yamt/cg

Appease kubelet warnings on docker for mac
pull/741/head
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
1 changed files with 2 additions and 0 deletions

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"
}
}
}