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:
Kubernetes Prow Robot 2021-09-17 04:57:13 -07:00 committed by GitHub
commit 91f820eee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -664,11 +664,11 @@ func (swc SwapCheck) Check() (warnings, errorList []error) {
buf = append(buf, scanner.Text())
}
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 {
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