From a65d05bd9cf4d196732c1f4750500231e9393f7c Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Tue, 19 May 2020 16:26:49 +0300 Subject: [PATCH] source/panic_fake: rename module to make lint happy --- pkg/nfd-worker/nfd-worker-internal_test.go | 2 +- pkg/nfd-worker/nfd-worker.go | 2 +- source/panic_fake/fake_panic.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/nfd-worker/nfd-worker-internal_test.go b/pkg/nfd-worker/nfd-worker-internal_test.go index 12c35675b..7716cdbb2 100644 --- a/pkg/nfd-worker/nfd-worker-internal_test.go +++ b/pkg/nfd-worker/nfd-worker-internal_test.go @@ -207,7 +207,7 @@ func TestCreateFeatureLabels(t *testing.T) { func TestGetFeatureLabels(t *testing.T) { Convey("When I get feature labels and panic occurs during discovery of a feature source", t, func() { - fakePanicFeatureSource := source.FeatureSource(new(panic_fake.Source)) + fakePanicFeatureSource := source.FeatureSource(new(panicfake.Source)) returnedLabels, err := getFeatureLabels(fakePanicFeatureSource) Convey("No label is returned", func() { diff --git a/pkg/nfd-worker/nfd-worker.go b/pkg/nfd-worker/nfd-worker.go index aa7a1ed29..de43e331a 100644 --- a/pkg/nfd-worker/nfd-worker.go +++ b/pkg/nfd-worker/nfd-worker.go @@ -280,7 +280,7 @@ func configureParameters(sourcesWhiteList []string, labelWhiteListStr string) (e kernel.Source{}, memory.Source{}, network.Source{}, - panic_fake.Source{}, + panicfake.Source{}, pci.Source{}, storage.Source{}, system.Source{}, diff --git a/source/panic_fake/fake_panic.go b/source/panic_fake/fake_panic.go index d4dec7a4f..2ffff3592 100644 --- a/source/panic_fake/fake_panic.go +++ b/source/panic_fake/fake_panic.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package panic_fake +package panicfake import "sigs.k8s.io/node-feature-discovery/source"