Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick #16857 to 7.6: Fix NewContainerMetadataEnricher to use default config for kubernetes module. #16874

Closed
wants to merge 2 commits into from

Conversation

blakerouse
Copy link
Contributor

@blakerouse blakerouse commented Mar 6, 2020

Cherry-pick of PR #16857 to 7.6 branch. Original message:

What does this PR do?

Fix NewContainerMetadataEnricher to use default values for metadata.Config. ResourceMetadataEnricher already used the default config.

This also includes a change to use InitDefaults so an new call sites do not need to worry about ensuring the default config is always used before unpacking.

Why is it important?

So labels.dedot and annotations.dedot default to true.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files (already was supposed to be default)
  • I have added tests that prove my fix is effective or that my feature works

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

… module. (elastic#16857)

* Fix code to use default config for resource metadata.

* Add changelog entry.

(cherry picked from commit 5c38912)
@blakerouse blakerouse requested a review from a team March 6, 2020 14:42
@blakerouse blakerouse added containers Related to containers use case Team:Platforms Label for the Integrations - Platforms team labels Mar 6, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@blakerouse
Copy link
Contributor Author

Actually 7.6 doesn't support InitDefaults so this cannot be backported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport containers Related to containers use case review Team:Platforms Label for the Integrations - Platforms team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants