Simplify checkCgroups function call

Co-authored-by: Brian Downs <brian.downs@gmail.com>
This commit is contained in:
Chris Kim 2020-12-09 11:59:54 -08:00 committed by GitHub
parent a3f87a81bd
commit 48925fcb88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -176,7 +176,7 @@ func addFeatureGate(current, new string) string {
return current + "," + new
}
func checkCgroups() (kubeletRoot string, runtimeRoot string, hasCFS bool, hasPIDs bool) {
func checkCgroups() (kubeletRoot, runtimeRoot string, hasCFS, hasPIDs bool) {
f, err := os.Open("/proc/self/cgroup")
if err != nil {
return "", "", false, false