-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Elastic Agent] Handle case where policy doesn't contain Fleet connection information #25707
[Elastic Agent] Handle case where policy doesn't contain Fleet connection information #25707
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
Pinging @elastic/agent (Team:Agent) |
…tion information (#25707) (#25713) * Handle case where policy doesn't contain Fleet connection information. * Add changelog entry. (cherry picked from commit e86109e) Co-authored-by: Blake Rouse <[email protected]>
…tion information (#25707) (#25714) * Handle case where policy doesn't contain Fleet connection information. * Add changelog entry. (cherry picked from commit e86109e) Co-authored-by: Blake Rouse <[email protected]>
return errors.New(err, "could not convert the configuration from the policy", errors.TypeConfig) | ||
} | ||
if _, ok := data["fleet"]; !ok { | ||
// no fleet information in the configuration (skip checking client) |
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.
Maybe worth a debug log?
What does this PR do?
Ensures that the client connection to Fleet Server is only updated if the policy has
fleet.*
.Why is it important?
Fixes #25586 because of kibana issue elastic/kibana#100050
Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files[ ] I have added tests that prove my fix is effective or that my feature worksCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues