Skip to content

Commit

Permalink
Fix exclude_labels when there are dotted keys (#10154)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjsamuel authored and ruflin committed Jan 18, 2019
1 parent 4140305 commit c8b42bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d

- Enforce validation for the Central Management access token. {issue}9621[9621]
- Allow to unenroll a Beat from the UI. {issue}9452[9452]
- Fix exclude_labels when there are dotted keys {pull}10154[10154]

*Auditbeat*

Expand Down
2 changes: 1 addition & 1 deletion libbeat/common/kubernetes/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (g *metaGenerator) ResourceMetadata(obj Resource) common.MapStr {

// Exclude any labels that are present in the exclude_labels config
for _, label := range g.ExcludeLabels {
delete(labelMap, label)
labelMap.Delete(label)
}

annotationsMap := generateMapSubset(objMeta.Annotations, g.IncludeAnnotations, g.AnnotationsDedot)
Expand Down

0 comments on commit c8b42bf

Please sign in to comment.