-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] Agent upgrade available should use latest agent version #167410
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Pinging @elastic/fleet (Team:Fleet) |
@@ -60,8 +60,7 @@ export const getAvailableVersions = async ({ | |||
.sort((a: any, b: any) => (semverGt(a, b) ? -1 : 1)); | |||
versionsToDisplay = uniq(versions) as string[]; | |||
|
|||
const appendCurrentVersion = | |||
includeCurrentVersion ?? !config?.internal?.onlyAllowAgentUpgradeToKnownVersions; | |||
const appendCurrentVersion = includeCurrentVersion; |
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.
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
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.
LGTM
## Summary The recent [change](#167410) broke an integration test in agent where the test upgrades to a newer snapshot version. This change is removing the version check against the latest agent version if `versionToUpgrade` is given. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
Summary
Closes #167387
Replaced using kibana version when deciding if agent upgrade is available (only in serverless, in stateful kibana version is still returned as an available version).
To verify locally:
kibana.dev.yml
:xpack.fleet.internal.onlyAllowAgentUpgradeToKnownVersions: true
agent_versions_list.json
to local kibana folder~/kibana/x-pack/plugins/fleet/target
agent_versions_list.json.zip
Agent list:
Upgrade available filter - 1 agent on latest version, 9 upgradeable:
Agent details:
Agent on latest version has disable
Upgrade agent
action:Bulk action with one agent that is not upgradeable (already on latest version), expected error:
Checklist