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

Merge pull request #551 from marquiz/fixes/lint-redress

Straighten wrinkles in lint fixes
This commit is contained in:
Kubernetes Prow Robot 2021-07-07 05:26:43 -07:00 committed by GitHub
commit 8397e5f789
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

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

View file

@ -57,7 +57,7 @@ type Source struct {
} }
// Name returns the name of the feature source // 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 // NewConfig method of the FeatureSource interface
func (s *Source) NewConfig() source.Config { return newDefaultConfig() } func (s *Source) NewConfig() source.Config { return newDefaultConfig() }

View file

@ -42,7 +42,7 @@ var (
type Source struct{} type Source struct{}
// Name returns the name of the feature source // 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 // NewConfig method of the FeatureSource interface
func (s *Source) NewConfig() source.Config { return nil } 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 // 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 // NewConfig method of the FeatureSource interface
func (s *Source) NewConfig() source.Config { return newDefaultConfig() } 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 // 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 // NewConfig method of the FeatureSource interface
func (s *Source) NewConfig() source.Config { return newDefaultConfig() } func (s *Source) NewConfig() source.Config { return newDefaultConfig() }