Skip to content

Commit

Permalink
Custom builder options for Images/Sources (#310)
Browse files Browse the repository at this point in the history
- add `builder` property with customization for the Integration used to build new Images
  • Loading branch information
mattoni authored Feb 27, 2024
1 parent 8ce1da5 commit 2e23502
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
16 changes: 12 additions & 4 deletions components/schemas/images/Image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ required:
- size
- backend
- requires
- build
- factory
- config
- state
- events
Expand Down Expand Up @@ -68,9 +66,19 @@ properties:
properties:
args:
type: object
description: Arguments to pass to the factory during a build of this image.
description: Arguments to pass to the builder during a build of this image.
additionalProperties:
type: string
builder:
type: object
nullable: true
description: Configuration options regarding the builder used to create/import this Image.
required:
- integration_id
properties:
integration_id:
description: The ID of the Integration used to do the build.
$ref: ../ID.yml
config:
type: object
description: Configuration settings for the image.
Expand Down Expand Up @@ -164,7 +172,7 @@ properties:
factory:
type: object
nullable: true
description: Identifies which factory the image was built on and when.
description: Information about the Factory service that built/imported the Image into Cycle.
required:
- node_id
- cached
Expand Down
10 changes: 10 additions & 0 deletions components/schemas/images/sources/ImageSource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ properties:
$ref: "./ImageSourceAbout.yml"
origin:
$ref: "../origins/ImageOrigin.yml"
builder:
type: object
nullable: true
description: Configuration options regarding the builder used to create/import Images using this Image Source.
required:
- integration_id
properties:
integration_id:
description: The ID of the Integration used to do the build.
$ref: ../../ID.yml
creator:
"$ref": "../../creators/CreatorScope.yml"
state:
Expand Down

0 comments on commit 2e23502

Please sign in to comment.