From b645f3038e79089ce7a3f11dab56a90d124d34f4 Mon Sep 17 00:00:00 2001 From: loopever Date: Sun, 9 Aug 2020 22:51:04 +0800 Subject: [PATCH] Fix some typo --- cmd/kube-scheduler/app/options/insecure_serving.go | 2 +- cmd/kubeadm/app/phases/certs/renewal/filerenewer.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/kube-scheduler/app/options/insecure_serving.go b/cmd/kube-scheduler/app/options/insecure_serving.go index 9e1677b5116..2a0ffb1c509 100644 --- a/cmd/kube-scheduler/app/options/insecure_serving.go +++ b/cmd/kube-scheduler/app/options/insecure_serving.go @@ -92,7 +92,7 @@ func (o *CombinedInsecureServingOptions) ApplyTo(c *schedulerappconfig.Config, c return o.applyTo(c, componentConfig) } -// ApplyToFromLoadedConfig updates the insecure serving options from the component config and then appies it to the given scheduler app configuration. +// ApplyToFromLoadedConfig updates the insecure serving options from the component config and then applies it to the given scheduler app configuration. func (o *CombinedInsecureServingOptions) ApplyToFromLoadedConfig(c *schedulerappconfig.Config, componentConfig *kubeschedulerconfig.KubeSchedulerConfiguration) error { if o == nil { return nil diff --git a/cmd/kubeadm/app/phases/certs/renewal/filerenewer.go b/cmd/kubeadm/app/phases/certs/renewal/filerenewer.go index af92ac58778..6299ffe0556 100644 --- a/cmd/kubeadm/app/phases/certs/renewal/filerenewer.go +++ b/cmd/kubeadm/app/phases/certs/renewal/filerenewer.go @@ -23,13 +23,13 @@ import ( "k8s.io/kubernetes/cmd/kubeadm/app/util/pkiutil" ) -// FileRenewer define a certificate renewer implementation that uses given CA cert and key for generating new certficiates +// FileRenewer define a certificate renewer implementation that uses given CA cert and key for generating new certificates type FileRenewer struct { caCert *x509.Certificate caKey crypto.Signer } -// NewFileRenewer returns a new certificate renewer that uses given CA cert and key for generating new certficiates +// NewFileRenewer returns a new certificate renewer that uses given CA cert and key for generating new certificates func NewFileRenewer(caCert *x509.Certificate, caKey crypto.Signer) *FileRenewer { return &FileRenewer{ caCert: caCert,