-
Notifications
You must be signed in to change notification settings - Fork 519
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
Tidy up beater/config #5376
Tidy up beater/config #5376
Conversation
- remove some "setup" methods, set default values before unpacking - unexport DefaultKibanaAgentConfig - de-pointer various config fields to avoid the need for nil-pointer checks, and rely on default values; remove "IsEnabled" methods in favour of setting default values for Enabled fields - move various config types into their own files - remove dead validator code
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one comment, but that's all 👍
} | ||
|
||
func (s *AgentConfig) setup() error { | ||
if !s.Service.isValid() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The validation checks for service are preventing kibana-generated apm-server configs from starting, since selecting "name=all" and "envirohnment=all" results in service being marshaled as {}
(978acd4). Adding this as a note in case there's a conflict between PRs.
* Tidy up beater/config - remove some "setup" methods, set default values before unpacking - unexport DefaultKibanaAgentConfig - de-pointer various config fields to avoid the need for nil-pointer checks, and rely on default values; remove "IsEnabled" methods in favour of setting default values for Enabled fields - move various config types into their own files - remove dead validator code * beater/config: remove now-pointless test (cherry picked from commit b0c4307)
* Tidy up beater/config - remove some "setup" methods, set default values before unpacking - unexport DefaultKibanaAgentConfig - de-pointer various config fields to avoid the need for nil-pointer checks, and rely on default values; remove "IsEnabled" methods in favour of setting default values for Enabled fields - move various config types into their own files - remove dead validator code * beater/config: remove now-pointless test (cherry picked from commit b0c4307) Co-authored-by: Andrew Wilkins <axw@elastic.co>
Motivation/summary
How to test these changes
N/A, non-functional change.
Related issues
Setting up for implementing #5347