[Fleet] Add force to upgrade openAPI (#138000) (#138023)

(cherry picked from commit 6bd3c73cec)

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
This commit is contained in:
Kibana Machine 2022-08-03 15:04:09 -04:00 committed by GitHub
parent 30bd13db5e
commit fa022348a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 15 deletions

View file

@ -21,6 +21,9 @@ properties:
items:
type: string
description: list of agent IDs
force:
type: boolean
description: Force upgrade, skipping validation (should be used with caution)
required:
- agents
- version

View file

@ -1,16 +1,12 @@
title: Upgrade agent
oneOf:
- type: object
properties:
version:
type: string
required:
- version
- type: object
properties:
version:
type: string
source_uri:
type: string
required:
- version
type: object
properties:
version:
type: string
source_uri:
type: string
force:
type: boolean
description: Force upgrade, skipping validation (should be used with caution)
required:
- version