mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
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:
parent
065e45087b
commit
2a1496c2ea
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user