Make swap check as an error

Based on amount of support issues where warning about enabled
swap not noticed or ignored, it will be better to make this
check as an error.
This commit is contained in:
Alexander Kanevskiy 2017-11-09 14:25:36 +02:00
parent 065e45087b
commit 2a1496c2ea

View File

@ -545,7 +545,7 @@ func (swc SwapCheck) Check() (warnings, errors []error) {
}
if len(buf) > 1 {
return []error{fmt.Errorf("running with swap on is not supported. Please disable swap or set kubelet's --fail-swap-on flag to false")}, nil
return nil, []error{fmt.Errorf("running with swap on is not supported. Please disable swap")}
}
return nil, nil