-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Ingest Manager] filter out non-upgradeable agents when user bulk upgrades #80391
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
[Ingest Manager] filter out non-upgradeable agents when user bulk upgrades #80391
Conversation
|
Pinging @elastic/ingest-management (Team:Ingest Management) |
| (agent) => | ||
| !agent.unenrollment_started_at && | ||
| !agent.unenrolled_at && | ||
| isAgentUpgradeable(agent, kibanaVersion) |
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.
Do you think we can update isAgentUpgradeable to have this logic?
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.
Good idea. For the single agent upgrade handler I will still check it to return a descriptive error message.
💚 Build SucceededMetrics [docs]page load bundle size
History
To update your PR or re-run it, just comment with: |
nchaulet
left a comment
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.
🚀
…rades (elastic#80391) * filter out non-upgradeable agents when user bulk upgrades * check for unenrolled or unenrolling agents in isAgentUpgradeable
…rades (elastic#80391) * filter out non-upgradeable agents when user bulk upgrades * check for unenrolled or unenrolling agents in isAgentUpgradeable
…rades (#80391) (#80420) * filter out non-upgradeable agents when user bulk upgrades * check for unenrolled or unenrolling agents in isAgentUpgradeable Co-authored-by: Kibana Machine <[email protected]>
Resolves #80070
When a user uses bulk actions to upgrade agents, it was not filtering out agents that were not upgradeable. This change will filter them out so the action never gets sent to the non-upgradeable agent.