mirror of
https://github.com/k3s-io/k3s.git
synced 2026-05-28 04:34:19 -04:00
Simplify checkCgroups function call
Co-authored-by: Brian Downs <brian.downs@gmail.com>
This commit is contained in:
parent
a3f87a81bd
commit
48925fcb88
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue