File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
cmd/kubeadm/app/cmd/phases/join Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -101,15 +101,16 @@ func runKubeletStartJoinPhase(c workflow.RunData) error {
101
101
}
102
102
bootstrapKubeConfigFile := kubeadmconstants .GetBootstrapKubeletKubeConfigPath ()
103
103
104
- // Write the bootstrap kubelet config file or the TLS-Boostrapped kubelet config file down to disk
105
- klog .V (1 ).Infoln ("[kubelet-start] writing bootstrap kubelet config file at" , bootstrapKubeConfigFile )
104
+ // Write the bootstrap kubelet config file or the TLS-Bootstrapped kubelet config file down to disk
105
+ klog .V (1 ).Infof ("[kubelet-start] writing bootstrap kubelet config file at %s " , bootstrapKubeConfigFile )
106
106
if err := kubeconfigutil .WriteToDisk (bootstrapKubeConfigFile , tlsBootstrapCfg ); err != nil {
107
107
return errors .Wrap (err , "couldn't save bootstrap-kubelet.conf to disk" )
108
108
}
109
109
110
110
// Write the ca certificate to disk so kubelet can use it for authentication
111
111
cluster := tlsBootstrapCfg .Contexts [tlsBootstrapCfg .CurrentContext ].Cluster
112
112
if _ , err := os .Stat (cfg .CACertPath ); os .IsNotExist (err ) {
113
+ klog .V (1 ).Infof ("[kubelet-start] writing CA certificate at %s" , cfg .CACertPath )
113
114
if err := certutil .WriteCert (cfg .CACertPath , tlsBootstrapCfg .Clusters [cluster ].CertificateAuthorityData ); err != nil {
114
115
return errors .Wrap (err , "couldn't save the CA certificate to disk" )
115
116
}
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ func runPreflight(c workflow.RunData) error {
118
118
return errors .New (msg .String ())
119
119
}
120
120
121
- // run kubeadm init preflight checks for checking all the prequisites
121
+ // run kubeadm init preflight checks for checking all the prerequisites
122
122
fmt .Println ("[preflight] Running pre-flight checks before initializing the new control plane instance" )
123
123
if err := preflight .RunInitNodeChecks (utilsexec .New (), initCfg , j .IgnorePreflightErrors ()); err != nil {
124
124
return err
You can’t perform that action at this time.
0 commit comments