-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet] Allow agent force upgrading to a newer patch release #142450
Conversation
Pinging @elastic/fleet (Team:Fleet) |
if ( | ||
force && | ||
!( | ||
semverMajor(kibanaVersionNumber) > semverMajor(versionToUpgradeNumber) || |
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.
I think that this condition would be more readable if extracted in a function. This file is becoming kinda difficult to read with all the different cases, simplifying ot would help maintaining it :)
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.
Agreed it's confusing :) I extracted this into named variables and added comments. I didn't think a function would make a lot of sense because it's not reused elsewhere. Let me know what you think.
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.
Thanks for the changes :) LGTM!
…-ref HEAD~1..HEAD --fix'
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
#142581) (cherry picked from commit b8c17b0) Co-authored-by: Josh Dover <[email protected]>
Summary
This change allows customers to test new patch releases of Agent before they're officially released. This is only supported on the upgrade API when using the
force: true
flag. Upgrading to a newer minor or major are still not supported.Checklist