mirror of https://github.com/k3s-io/k3s
Simplify checkCgroups function call
Co-authored-by: Brian Downs <brian.downs@gmail.com>pull/2675/head
parent
81256683c1
commit
b03ddade8e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue