-
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 preconfiguration to install latest package instead of a specific version #97138
Comments
Pinging @elastic/fleet (Feature:Fleet) |
Pinging @elastic/fleet (Team:Fleet) |
Pinging @simitt on this as the feature requester. |
@simitt What is our expected behaviour in Cloud? My assumption is, that for fleet-server and apm-server package, the version should always be identical to the stack in the future. To not have to update the stack pack each time, I would expect we can use a variable in the config. Assuming apm and fleet-server packages are versioned with the stack, would there even be a use case that a user could upgrade the package manually? |
For apm-server we plan to align the package version with the stack version. Ideally users would not have to upgrade manually (or at all, it would be bundled with the Kibana version). If that's feasible short-term ( |
I am looking for a solution for As a short term solution - could a declared package just be ignored if it is already installed in a newer version? |
I think we need this functionality for #97016. We're trying to replace the bespoke functions for installing default packages and policies with the preconfiguration API, and these defaults always have to pull the latest version of the So in some sense, we're already preconfiguring one package with the IMO as long as we only install the latest package if the user explicitly sets |
So instead of using
I think that makes more sense for our planned use case. |
@Zacqary it sounds like we are heading in the same direction. I think a supporting |
Requiring a package version in the Preconfiguration API can be problematic for cloud users who don't have access to their
kibana.yml
file. Specifying an outdated package without theforce
flag could cause preconfiguration to fail.Acceptance Criteria
We should have an option to always install the latest version of a package.
To make sure the user is doing this intentionally, we should require the package config to look like:
instead of just leaving
version
blank.Discussion
Should we set
force: true
by default? Iflatest
is an option, then when a user specifies a particular package version, they probably explicitly want that version even if there's a newer version available.The text was updated successfully, but these errors were encountered: