mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Merge pull request #104854 from pacoxu/kubeadm-swap-check
kubeadm: move swap on check error to warning since NodeSwap is beta
This commit is contained in:
commit
91f820eee4
@ -664,11 +664,11 @@ func (swc SwapCheck) Check() (warnings, errorList []error) {
|
|||||||
buf = append(buf, scanner.Text())
|
buf = append(buf, scanner.Text())
|
||||||
}
|
}
|
||||||
if err := scanner.Err(); err != nil {
|
if err := scanner.Err(); err != nil {
|
||||||
return nil, []error{errors.Wrap(err, "error parsing /proc/swaps")}
|
return []error{errors.Wrap(err, "error parsing /proc/swaps")}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(buf) > 1 {
|
if len(buf) > 1 {
|
||||||
return nil, []error{errors.New("running with swap on is not supported. Please disable swap")}
|
return []error{errors.New("swap is enabled; production deployments should disable swap unless testing the NodeSwap feature gate of the kubelet")}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil, nil
|
return nil, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user