export default kibana client config#16042
Merged
graphaelli merged 4 commits intoelastic:masterfrom Feb 5, 2020
Merged
Conversation
houndci-bot
reviewed
Feb 3, 2020
Member
Author
|
Test failure seems to be due to a flaky test: |
Member
Author
|
on the travis side: |
Member
Author
|
Different tests failed (only on windows) after merging master back in - they seem to be unrelated to these changes. |
urso
reviewed
Feb 5, 2020
libbeat/kibana/client_config.go
Outdated
| var ( | ||
| defaultClientConfig = ClientConfig{ | ||
| // DefaultClientConfig connects to a locally running kibana over HTTP | ||
| func DefaultClientConfig() *ClientConfig { |
There was a problem hiding this comment.
Let's return default configs by value. We do so in most places (or should) that construct a default configuration. Just by judging from the function interface returning by value tells you that the value all belongs to you and can be freely modified without worries.
Member
Author
There was a problem hiding this comment.
sounds good, i'll make that change now
kvch
approved these changes
Feb 5, 2020
urso
approved these changes
Feb 5, 2020
graphaelli
added a commit
to graphaelli/beats
that referenced
this pull request
Feb 5, 2020
graphaelli
added a commit
that referenced
this pull request
Feb 6, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Exports
DefaultClientConfig, to be used by beats framework users.