cloudapi: add pulp upload target

Add the pulp.ostree upload target to the cloud API and enable it for
edge/iot commits.

Co-Authored-By: Achilleas Koutsou <achilleas@koutsou.net>
This commit is contained in:
Gianluca Zuccarelli 2023-10-16 20:13:46 +02:00 committed by Sanne Raymaekers
parent 5a93166f6b
commit b711e302ba
4 changed files with 149 additions and 64 deletions

View file

@ -616,6 +616,7 @@ components:
- $ref: '#/components/schemas/AzureUploadStatus'
- $ref: '#/components/schemas/ContainerUploadStatus'
- $ref: '#/components/schemas/OCIUploadStatus'
- $ref: '#/components/schemas/PulpOSTreeUploadStatus'
UploadStatusValue:
type: string
enum: ['success', 'failure', 'pending', 'running']
@ -628,6 +629,7 @@ components:
- azure
- container
- oci.objectstorage
- pulp.ostree
AWSEC2UploadStatus:
type: object
required:
@ -696,6 +698,13 @@ components:
properties:
url:
type: string
PulpOSTreeUploadStatus:
type: object
required:
- repo_url
properties:
repo_url:
type: string
ComposeMetadata:
allOf:
- $ref: '#/components/schemas/ObjectReference'
@ -945,6 +954,7 @@ components:
- $ref: '#/components/schemas/ContainerUploadOptions'
- $ref: '#/components/schemas/LocalUploadOptions'
- $ref: '#/components/schemas/OCIUploadOptions'
- $ref: '#/components/schemas/PulpOSTreeUploadOptions'
description: |
Options for a given upload destination.
This should really be oneOf but AWSS3UploadOptions is a subset of
@ -1113,6 +1123,21 @@ components:
example: 'latest'
description: |
Tag for the created container image
PulpOSTreeUploadOptions:
type: object
additionalProperties: false
required:
- basepath
properties:
basepath:
type: string
description: 'Basepath for distributing the repository'
repository:
type: string
description: 'Repository to import the ostree commit to'
server_address:
type: string
format: uri
Customizations:
type: object
additionalProperties: false