Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom builder options for Images/Sources #310

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading