-
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
[Serverless] Use latest published version for initial agent download #166150
Conversation
Pinging @elastic/fleet (Team:Fleet) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
…-ref HEAD~1..HEAD --fix'
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
💔 Build FailedFailed CI StepsMetrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
…166811) Relates to #165657. In #166150 a method that returns the latest available version was introduced in fleet. We would like to use this method as a consumers of fleet plugin ([observability_onboarding](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_onboarding)). Additionally we would like to decide from outside fleet wether we want to include currentVersion or not, this is specially useful for us since we download the elastic agent executable from https://artifacts.elastic.co/downloads/beats/elastic-agent/ where snapshots are not available.
…lastic#166811) Relates to elastic#165657. In elastic#166150 a method that returns the latest available version was introduced in fleet. We would like to use this method as a consumers of fleet plugin ([observability_onboarding](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_onboarding)). Additionally we would like to decide from outside fleet wether we want to include currentVersion or not, this is specially useful for us since we download the elastic agent executable from https://artifacts.elastic.co/downloads/beats/elastic-agent/ where snapshots are not available.
Summary
Closes #139174
Builds on top of #165978 to use the latest actually published version of Agent to populate all of the install scripts and k8s manifests for installing agent. This is only enabled when
xpack.fleet.internal.onlyAllowAgentUpgradeToKnownVersions: true
is set on Serverless.This way users setting up Agent on Serverless projects will not be shown SNAPSHOT builds or pre-releases.
You can test this by placing a JSON file at
x-pack/plugins/fleet/target/agent_versions_list.json
like:Fleet will always show the first version in the list for new installations.
Checklist
Delete any items that are not applicable to this PR.