From 2e235028dd8d2214a4fd42261ac0aaa96d0db8eb Mon Sep 17 00:00:00 2001 From: Alexander Mattoni <5110855+mattoni@users.noreply.github.com> Date: Tue, 27 Feb 2024 11:46:39 -0800 Subject: [PATCH] Custom builder options for Images/Sources (#310) - add `builder` property with customization for the Integration used to build new Images --- components/schemas/images/Image.yml | 16 ++++++++++++---- .../schemas/images/sources/ImageSource.yml | 10 ++++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/components/schemas/images/Image.yml b/components/schemas/images/Image.yml index bb859ae7..883db54b 100644 --- a/components/schemas/images/Image.yml +++ b/components/schemas/images/Image.yml @@ -8,8 +8,6 @@ required: - size - backend - requires - - build - - factory - config - state - events @@ -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. @@ -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 diff --git a/components/schemas/images/sources/ImageSource.yml b/components/schemas/images/sources/ImageSource.yml index 5b536486..37ee8925 100644 --- a/components/schemas/images/sources/ImageSource.yml +++ b/components/schemas/images/sources/ImageSource.yml @@ -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: