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

This commit is contained in:
Nicolas Chaulet 2022-08-03 13:57:52 -04:00 committed by GitHub
parent a52d8b31db
commit 6bd3c73cec
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