diff --git a/cmd/nginx/main.go b/cmd/nginx/main.go index ff16b6361f..c76b27c4a9 100644 --- a/cmd/nginx/main.go +++ b/cmd/nginx/main.go @@ -222,7 +222,7 @@ func createApiserverClient(apiserverHost, kubeConfig string) (*kubernetes.Client } lastErr = err - glog.V(2).Infof("Unexpected error discovering Kubernetes version (attempt %v): %v", err, retries) + glog.V(2).Infof("Unexpected error discovering Kubernetes version (attempt %v): %v", retries, err) retries++ return false, nil }) diff --git a/internal/k8s/main_test.go b/internal/k8s/main_test.go index f724f5cee0..7283ebc5e9 100644 --- a/internal/k8s/main_test.go +++ b/internal/k8s/main_test.go @@ -81,7 +81,7 @@ func TestGetNodeIP(t *testing.T) { }, }}}), "notexistnode", "", true}, - // node exist + // node exist {testclient.NewSimpleClientset(&apiv1.NodeList{Items: []apiv1.Node{{ ObjectMeta: metav1.ObjectMeta{ Name: "demo",