From eb0afbc7d01541275d34befca9da7512511e0971 Mon Sep 17 00:00:00 2001 From: Paco Xu Date: Mon, 28 Aug 2023 11:42:24 +0800 Subject: [PATCH] kubeadm: update swap warning for v1.28 change --- cmd/kubeadm/app/preflight/checks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kubeadm/app/preflight/checks.go b/cmd/kubeadm/app/preflight/checks.go index 1bff75aa87d..815122825af 100644 --- a/cmd/kubeadm/app/preflight/checks.go +++ b/cmd/kubeadm/app/preflight/checks.go @@ -653,7 +653,7 @@ func (swc SwapCheck) Check() (warnings, errorList []error) { } if len(buf) > 1 { - return []error{errors.New("swap is enabled; production deployments should disable swap unless testing the NodeSwap feature gate of the kubelet")}, nil + return []error{errors.New("swap is supported for cgroup v2 only; the NodeSwap feature gate of the kubelet is beta but disabled by default")}, nil } return nil, nil