Commit 2a1496c2 authored by Alexander Kanevskiy's avatar Alexander Kanevskiy

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.
parent 065e4508
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment