1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-05 08:17:04 +00:00

Straighten wrinkles in lint fixes

Fix small mistakes that slipped through with lint fixes (in
1230945564).
This commit is contained in:
Markus Lehtonen 2021-07-07 14:32:11 +03:00
parent 6e039818eb
commit a55783d533
5 changed files with 5 additions and 5 deletions

View file

@ -43,7 +43,7 @@ import (
)
const (
// LabelNs defines the Namespace for feature labels
// LabelNs defines the namespace for feature labels
LabelNs = "feature.node.kubernetes.io"
// AnnotationNsBase namespace for all NFD-related annotations

View file

@ -57,7 +57,7 @@ type Source struct {
}
// Name returns the name of the feature source
func (s Source) Name() string { return "custom" }
func (s Source) Name() string { return Name }
// NewConfig method of the FeatureSource interface
func (s *Source) NewConfig() source.Config { return newDefaultConfig() }

View file

@ -42,7 +42,7 @@ var (
type Source struct{}
// Name returns the name of the feature source
func (s Source) Name() string { return "local" }
func (s Source) Name() string { return Name }
// NewConfig method of the FeatureSource interface
func (s *Source) NewConfig() source.Config { return nil }

View file

@ -47,7 +47,7 @@ type Source struct {
}
// Name returns the name of the feature source
func (s Source) Name() string { return "pci" }
func (s Source) Name() string { return Name }
// NewConfig method of the FeatureSource interface
func (s *Source) NewConfig() source.Config { return newDefaultConfig() }

View file

@ -50,7 +50,7 @@ type Source struct {
}
// Name returns the name of the feature source
func (s Source) Name() string { return "usb" }
func (s Source) Name() string { return Name }
// NewConfig method of the FeatureSource interface
func (s *Source) NewConfig() source.Config { return newDefaultConfig() }