Skip to content

Commit

Permalink
Ignore lint error on metagen variables
Browse files Browse the repository at this point in the history
Signed-off-by: constanca <[email protected]>
  • Loading branch information
constanca-m committed Jun 19, 2024
1 parent c760ef6 commit 3c45d0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metricbeat/module/kubernetes/util/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,8 @@ func NewResourceMetadataEnricher(
return &nilEnricher{}
}

var specificMetaGen metadata.MetaGen
var generalMetaGen *metadata.Resource
var specificMetaGen metadata.MetaGen //nolint:all

Check failure on line 593 in metricbeat/module/kubernetes/util/kubernetes.go

View workflow job for this annotation

GitHub Actions / lint (windows)

directive `//nolint:all` is unused (nolintlint)
var generalMetaGen *metadata.Resource //nolint:all

Check failure on line 594 in metricbeat/module/kubernetes/util/kubernetes.go

View workflow job for this annotation

GitHub Actions / lint (windows)

directive `//nolint:all` is unused (nolintlint)
// Create the metadata generator to be used in the watcher's event handler.
// Both specificMetaGen and generalMetaGen implement Generate method for metadata collection.
if resourceName == ServiceResource || resourceName == PodResource {
Expand Down

0 comments on commit 3c45d0d

Please sign in to comment.