Repository navigation
[Fleet] Split package policy Upgrade endpoint - #118854
Conversation
768aa75 to
8b649d6
Compare
8b649d6 to
1003c6c
Compare
|
Pinging @elastic/fleet (Team:Fleet) |
1003c6c to
4af2a2a
Compare
|
Should we update some OpenAPI spec file for these endpoints too? |
|
@juliaElastic I'm not sure why we throw that error, I'll try to take a look. @nchaulet I'll add the openApi specs in this PR, actually I was thinking to add them later, as we have a task to revise all of them, them but it's probably nicer to keep them in sync |
7027e4f to
714770d
Compare
There was a problem hiding this comment.
summary should mention dry run
714770d to
3a1ab4c
Compare
3a1ab4c to
e9f3a7a
Compare
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Page load bundle
History
To update your PR or re-run it, just comment with: cc @criamico |
* [Fleet] Split package policy Upgrade endpoint * Add openapi specs
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
* [Fleet] Split package policy Upgrade endpoint * Add openapi specs
* [Fleet] Split package policy Upgrade endpoint * Add openapi specs
* [Fleet] Split package policy Upgrade endpoint * Add openapi specs
Summary
Closes #115570
Breaking change in the package policies upgrade API
The packagePolicy
upgradeendpoint currently has this format. It supports a mutative upgrade operation (whendryRun: false) and a read-only dry run operation (whendryRun: true) for package policy upgrades:As part of a general reordering of Fleet APIs, this endpoint will now be split in two separate endpoints:
Repro steps
app/fleet/integrations/docker-1.0.0/add-integrationto install an older version of dockerpackagePolicyIdof this integrationTest case 1: Dry run
/package_policies/upgrade/dryrun. An example ofbodytargeting docker version1.1.1isTest case 2: Upgrade
/package_policies/upgrade. An example ofbody:Test case 3: Upgrade (in UI):
dryrunand theupgradeendpoint should work successfullyChecklist
Delete any items that are not applicable to this PR.
For maintainers