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

Add NewWithConfig init function to api/server.go #192

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

fearful-symmetry
Copy link
Contributor

What does this PR do?

This adds a new init method, NewWithConfig, that takes a Config struct, and not a config.C blob.

Why is it important?

As part of elastic/elastic-agent#4499 I'm refactoring the server setup process so the monitoring server can properly be reloaded by agent. I need this to clean up the init process, since agent will needlessly turn the Config struct into a config blob so it can pass it to New.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works

@fearful-symmetry fearful-symmetry added the Team:Elastic-Agent Label for the Agent team label Apr 3, 2024
@fearful-symmetry fearful-symmetry self-assigned this Apr 3, 2024
@fearful-symmetry fearful-symmetry requested a review from a team as a code owner April 3, 2024 14:25
@fearful-symmetry fearful-symmetry requested review from ycombinator and leehinman and removed request for a team April 3, 2024 14:25
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

cc @fearful-symmetry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants