From 55cc0e29575d8f45bcf4480e3ddae9ff2e89254b Mon Sep 17 00:00:00 2001 From: Ted Yu Date: Sun, 25 Aug 2019 19:30:19 -0700 Subject: [PATCH] Correct comment in CertOrKeyExist --- cmd/kubeadm/app/util/pkiutil/pki_helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kubeadm/app/util/pkiutil/pki_helpers.go b/cmd/kubeadm/app/util/pkiutil/pki_helpers.go index 170c0fa4583..38ce2cace03 100644 --- a/cmd/kubeadm/app/util/pkiutil/pki_helpers.go +++ b/cmd/kubeadm/app/util/pkiutil/pki_helpers.go @@ -198,7 +198,7 @@ func CertOrKeyExist(pkiPath, name string) bool { _, certErr := os.Stat(certificatePath) _, keyErr := os.Stat(privateKeyPath) if os.IsNotExist(certErr) && os.IsNotExist(keyErr) { - // The cert or the key did not exist + // The cert and the key do not exist return false }