mirror of
https://github.com/rancher/rke.git
synced 2025-09-16 23:20:56 +00:00
Standardize (re-)try logging
This commit is contained in:
@@ -19,7 +19,7 @@ import (
|
||||
|
||||
func CheckNodeReady(kubeClient *kubernetes.Clientset, runHost *hosts.Host, component string) error {
|
||||
for retries := 0; retries < k8s.MaxRetries; retries++ {
|
||||
logrus.Infof("[%s] Now checking status of node %v", component, runHost.HostnameOverride)
|
||||
logrus.Infof("[%s] Now checking status of node %v, try #%v", component, runHost.HostnameOverride, retries+1)
|
||||
k8sNode, err := k8s.GetNode(kubeClient, runHost.HostnameOverride)
|
||||
if err != nil {
|
||||
return fmt.Errorf("[%s] Error getting node %v: %v", component, runHost.HostnameOverride, err)
|
||||
|
Reference in New Issue
Block a user