mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Add field to allow synchronization to prerelease versions in bundled packages (#151627)
## Summary This PR adds a new field into `fleet_packages.json` to allow developers define if the bundled packages should accept prerelease versions too. This new field is just enabled in `apm` packages for now, so all the other packages would be updated with technical preview or stable versions. This PR should be backported at least to 8.7 (in 7.17 there are no `fleet_packages.json` file).
This commit is contained in:
parent
587679ecef
commit
37a652ea36
2 changed files with 7 additions and 1 deletions
|
@ -10,6 +10,10 @@
|
|||
will fetch the latest available version of the package from EPR (including prerelease versions),
|
||||
download that version, and rewrite its version to align with Kibana's.
|
||||
|
||||
The `allowSyncToPrerelease` option is available for packages who wish to opt into allowing sync
|
||||
"bundled" packages whose version contain prerelease tags (e.g. 8.4.3-beta.1). By default, it just
|
||||
updates to stable versions.
|
||||
|
||||
Packages will be fetched from https://epr-snapshot.elastic.co by default. This can be overridden
|
||||
via the `--epr-registry=production` command line argument when building Kibana. Fetching from the
|
||||
snapshot registry allows Kibana to bundle packages that have yet to be published to production in
|
||||
|
@ -21,7 +25,8 @@
|
|||
{
|
||||
"name": "apm",
|
||||
"version": "8.8.0-preview-1676887316",
|
||||
"forceAlignStackVersion": true
|
||||
"forceAlignStackVersion": true,
|
||||
"allowSyncToPrerelease": true
|
||||
},
|
||||
{
|
||||
"name": "elastic_agent",
|
||||
|
|
|
@ -23,6 +23,7 @@ interface FleetPackage {
|
|||
name: string;
|
||||
version: string;
|
||||
forceAlignStackVersion?: boolean;
|
||||
allowSyncToPrerelease?: boolean;
|
||||
}
|
||||
|
||||
export async function bundleFleetPackages(pkgDir: string, log: ToolingLog, config: Config) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue