mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
Merge pull request #86615 from mwmix/cert_logging_update
Updating minor grammar error.
This commit is contained in:
commit
d19b7242aa
@ -64,10 +64,10 @@ func CreatePKIAssets(cfg *kubeadmapi.InitConfiguration) error {
|
|||||||
return CreateServiceAccountKeyAndPublicKeyFiles(cfg.CertificatesDir)
|
return CreateServiceAccountKeyAndPublicKeyFiles(cfg.CertificatesDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateServiceAccountKeyAndPublicKeyFiles create a new public/private key files for signing service account users.
|
// CreateServiceAccountKeyAndPublicKeyFiles creates new public/private key files for signing service account users.
|
||||||
// If the sa public/private key files already exists in the target folder, they are used only if evaluated equals; otherwise an error is returned.
|
// If the sa public/private key files already exist in the target folder, they are used only if evaluated equals; otherwise an error is returned.
|
||||||
func CreateServiceAccountKeyAndPublicKeyFiles(certsDir string) error {
|
func CreateServiceAccountKeyAndPublicKeyFiles(certsDir string) error {
|
||||||
klog.V(1).Infoln("creating a new public/private key files for signing service account users")
|
klog.V(1).Infoln("creating new public/private key files for signing service account users")
|
||||||
_, err := keyutil.PrivateKeyFromFile(filepath.Join(certsDir, kubeadmconstants.ServiceAccountPrivateKeyName))
|
_, err := keyutil.PrivateKeyFromFile(filepath.Join(certsDir, kubeadmconstants.ServiceAccountPrivateKeyName))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
// kubeadm doesn't validate the existing certificate key more than this;
|
// kubeadm doesn't validate the existing certificate key more than this;
|
||||||
|
Loading…
Reference in New Issue
Block a user