Skip to content

Commit

Permalink
Consider nil tag processor in wmeta collector for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gabedos committed Jan 10, 2025
1 parent aaecb0a commit 3a5cd20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 242 deletions.
4 changes: 3 additions & 1 deletion comp/core/tagger/collectors/workloadmeta_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ func NewWorkloadMetaCollector(ctx context.Context, cfg config.Component, store w
c.initK8sResourcesMetaAsTags(metadataAsTags.GetResourcesLabelsAsTags(), metadataAsTags.GetResourcesAnnotationsAsTags())

// initializes with the static global tags
c.collectStaticGlobalTags(ctx, cfg)
if c.tagProcessor != nil {
c.collectStaticGlobalTags(ctx, cfg)
}

return c
}
Expand Down
117 changes: 0 additions & 117 deletions pkg/util/tags/static_tags.go

This file was deleted.

124 changes: 0 additions & 124 deletions pkg/util/tags/static_tags_test.go

This file was deleted.

0 comments on commit 3a5cd20

Please sign in to comment.