From 2a1496c2eac353c7eb4c82c9ddb5f1a6e1c37584 Mon Sep 17 00:00:00 2001 From: Alexander Kanevskiy Date: Thu, 9 Nov 2017 14:25:36 +0200 Subject: [PATCH] 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. --- 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 1894c6fcf1b..77be4635219 100644 --- a/cmd/kubeadm/app/preflight/checks.go +++ b/cmd/kubeadm/app/preflight/checks.go @@ -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