@@ -205,7 +205,7 @@ func run(ctx context.Context, cancel context.CancelFunc, flags *Flags) error {
205205 podNamespace : flags .podNamespace ,
206206 maxNodesPerIMEXDomain : flags .maxNodesPerIMEXDomain ,
207207 }
208- klog .Infof ("config : %v" , config )
208+ klog .Infof ("Config : %v" , config )
209209
210210 // Write the IMEX config with the current pod IP before starting the daemon
211211 if err := writeIMEXConfig (flags .podIP ); err != nil {
@@ -241,7 +241,7 @@ func run(ctx context.Context, cancel context.CancelFunc, flags *Flags) error {
241241 go func () {
242242 defer wg .Done ()
243243 if err := controller .Run (ctx ); err != nil {
244- klog .Errorf ("controller failed, initiate shutdown: %s" , err )
244+ klog .Errorf ("Controller failed, initiate shutdown: %s" , err )
245245 cancel ()
246246 }
247247 klog .Infof ("Terminated: controller task" )
@@ -275,7 +275,7 @@ func run(ctx context.Context, cancel context.CancelFunc, flags *Flags) error {
275275 // Watchdog restarts the IMEX daemon upon unexpected termination, and
276276 // shuts it down gracefully upon our own shutdown.
277277 if err := processManager .Watchdog (ctx ); err != nil {
278- klog .Errorf ("watch failed, initiate shutdown: %s" , err )
278+ klog .Errorf ("Watch failed, initiate shutdown: %s" , err )
279279 cancel ()
280280 }
281281 klog .Infof ("Terminated: process manager" )
@@ -292,10 +292,10 @@ func run(ctx context.Context, cancel context.CancelFunc, flags *Flags) error {
292292// IMEX daemon nodes config file and (re)starting the IMEX daemon process.
293293func IMEXDaemonUpdateLoopWithIPs (ctx context.Context , controller * Controller , cliqueID string , pm * ProcessManager ) error {
294294 for {
295- klog .Infof ("wait for nodes update" )
295+ klog .Infof ("Wait for nodes update" )
296296 select {
297297 case <- ctx .Done ():
298- klog .Infof ("shutdown : stop IMEXDaemonUpdateLoopWithIPs" )
298+ klog .Infof ("Shutdown : stop IMEXDaemonUpdateLoopWithIPs" )
299299 return nil
300300 case nodes := <- controller .GetNodesUpdateChan ():
301301 if err := writeNodesConfig (cliqueID , nodes ); err != nil {
@@ -320,10 +320,10 @@ func IMEXDaemonUpdateLoopWithIPs(ctx context.Context, controller *Controller, cl
320320// unexpectedly and expectedly).
321321func IMEXDaemonUpdateLoopWithDNSNames (ctx context.Context , controller * Controller , processManager * ProcessManager , dnsNameManager * DNSNameManager ) error {
322322 for {
323- klog .Infof ("wait for nodes update" )
323+ klog .Infof ("Wait for nodes update" )
324324 select {
325325 case <- ctx .Done ():
326- klog .Infof ("shutdown : stop IMEXDaemonUpdateLoopWithDNSNames" )
326+ klog .Infof ("Shutdown : stop IMEXDaemonUpdateLoopWithDNSNames" )
327327 return nil
328328 case nodes := <- controller .GetNodesUpdateChan ():
329329 updated , err := dnsNameManager .UpdateDNSNameMappings (nodes )
@@ -349,13 +349,13 @@ func IMEXDaemonUpdateLoopWithDNSNames(ctx context.Context, controller *Controlle
349349
350350 // Actively ask the IMEX daemon to re-read its config and to
351351 // re-connect to its peers (involving DNS name re-resolution).
352- klog .Infof ("updated DNS/IP mapping, old process: send SIGUSR1" )
352+ klog .Infof ("Updated DNS/IP mapping, old process: send SIGUSR1" )
353353 if err := processManager .Signal (syscall .SIGUSR1 ); err != nil {
354354 // Only log (ignore this error for now: if the process went away
355355 // unexpectedly, the process manager will handle that. If any
356356 // other error resulted in bad signal delivery, we may get away
357357 // with it).
358- klog .Errorf ("failed to send SIGUSR1 to child process: %s" , err )
358+ klog .Errorf ("Failed to send SIGUSR1 to child process: %s" , err )
359359 }
360360 }
361361 }
0 commit comments