From 51fffc653d8b0acc71818058fd643d903b068147 Mon Sep 17 00:00:00 2001 From: SataQiu Date: Wed, 24 Oct 2018 12:08:47 +0800 Subject: [PATCH] fix typos --- cmd/nginx/main.go | 2 +- internal/k8s/main_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",