From e6b9197f7cb5d329759cebdaeee1eb9a759a30c9 Mon Sep 17 00:00:00 2001 From: SataQiu Date: Thu, 4 Apr 2019 11:13:27 +0800 Subject: [PATCH] fix some golint failures of e2e_kubeadm/bootstrap_signer.go e2e_kubeadm/framework.go --- test/e2e_kubeadm/bootstrap_signer.go | 4 ++-- test/e2e_kubeadm/framework.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/e2e_kubeadm/bootstrap_signer.go b/test/e2e_kubeadm/bootstrap_signer.go index 94cd60c6506..9b3f2eed429 100644 --- a/test/e2e_kubeadm/bootstrap_signer.go +++ b/test/e2e_kubeadm/bootstrap_signer.go @@ -19,7 +19,7 @@ package e2e_kubeadm import ( "k8s.io/kubernetes/test/e2e/framework" - . "github.com/onsi/ginkgo" + "github.com/onsi/ginkgo" ) const ( @@ -37,7 +37,7 @@ var _ = KubeadmDescribe("bootstrap signer", func() { // so we are disabling the creation of a namespace in order to get a faster execution f.SkipNamespaceCreation = true - It("should be active", func() { + ginkgo.It("should be active", func() { //NB. this is technically implemented a part of the control-plane phase // and more specifically if the controller manager is properly configured, // the bootstrapsigner controller is activated and the system:controller:bootstrap-signer diff --git a/test/e2e_kubeadm/framework.go b/test/e2e_kubeadm/framework.go index 73f97057be0..f3312c5d4b2 100644 --- a/test/e2e_kubeadm/framework.go +++ b/test/e2e_kubeadm/framework.go @@ -18,6 +18,7 @@ package e2e_kubeadm import "k8s.io/kubernetes/test/e2e/framework" +// KubeadmDescribe annotates the test with the Kubeadm label. func KubeadmDescribe(text string, body func()) bool { return framework.KubeDescribe("[sig-cluster-lifecycle] [area-kubeadm] "+text, body) }