mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 08:40:42 +00:00
kubeadm: fixed typo in kubeadm/app/master/pki.go
This commit is contained in:
parent
4f035181cb
commit
bff1af69e9
@ -49,7 +49,7 @@ func newCertificateAuthority() (*rsa.PrivateKey, *x509.Certificate, error) {
|
|||||||
func newServerKeyAndCert(cfg *kubeadmapi.MasterConfiguration, caCert *x509.Certificate, caKey *rsa.PrivateKey, altNames certutil.AltNames) (*rsa.PrivateKey, *x509.Certificate, error) {
|
func newServerKeyAndCert(cfg *kubeadmapi.MasterConfiguration, caCert *x509.Certificate, caKey *rsa.PrivateKey, altNames certutil.AltNames) (*rsa.PrivateKey, *x509.Certificate, error) {
|
||||||
key, err := certutil.NewPrivateKey()
|
key, err := certutil.NewPrivateKey()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, fmt.Errorf("unabel to create private key [%v]", err)
|
return nil, nil, fmt.Errorf("unable to create private key [%v]", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
internalAPIServerFQDN := []string{
|
internalAPIServerFQDN := []string{
|
||||||
|
Loading…
Reference in New Issue
Block a user