mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 21:50:05 +00:00
kubeadm: fix printf format error
go test in 1.11 verifies format strings; this fix is needed for the test to pass with go 1.11.
This commit is contained in:
@@ -110,7 +110,7 @@ func CreateCACertAndKeyFiles(certSpec *KubeadmCert, cfg *kubeadmapi.InitConfigur
|
|||||||
if certSpec.CAName != "" {
|
if certSpec.CAName != "" {
|
||||||
return fmt.Errorf("This function should only be used for CAs, but cert %s has CA %s", certSpec.Name, certSpec.CAName)
|
return fmt.Errorf("This function should only be used for CAs, but cert %s has CA %s", certSpec.Name, certSpec.CAName)
|
||||||
}
|
}
|
||||||
glog.V(1).Infoln("creating a new certificate authority for %s", certSpec.Name)
|
glog.V(1).Infof("creating a new certificate authority for %s", certSpec.Name)
|
||||||
|
|
||||||
certConfig, err := certSpec.GetConfig(cfg)
|
certConfig, err := certSpec.GetConfig(cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user