From 6f892671259ee6e2ee58daac15e4fd067f7aa427 Mon Sep 17 00:00:00 2001 From: lIuDuI <1693291525@qq.com> Date: Thu, 4 Apr 2019 10:57:20 +0800 Subject: [PATCH] Fix comments and function names are different --- cmd/kubeadm/app/phases/certs/certs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kubeadm/app/phases/certs/certs.go b/cmd/kubeadm/app/phases/certs/certs.go index 3471a4c4bab..2cac3f16e72 100644 --- a/cmd/kubeadm/app/phases/certs/certs.go +++ b/cmd/kubeadm/app/phases/certs/certs.go @@ -293,7 +293,7 @@ func writeKeyFilesIfNotExist(pkiDir string, baseName string, key *rsa.PrivateKey return nil } -// writeCertificateAuthorithyFilesIfNotExist write a new CSR to the given path. +// writeCSRFilesIfNotExist writes a new CSR to the given path. // If there already is a CSR file at the given path; kubeadm tries to load it and check if it's a valid certificate. // otherwise this function returns an error. func writeCSRFilesIfNotExist(csrDir string, baseName string, csr *x509.CertificateRequest, key *rsa.PrivateKey) error {