Fix some typo

This commit is contained in:
loopever 2020-08-09 22:51:04 +08:00
parent da5ec168e7
commit b645f3038e
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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,