mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-28 23:49:33 +00:00
Simplify checkCgroups function call
Co-authored-by: Brian Downs <brian.downs@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user