From 48f97f5559559bcc654bb8226037730128990bd8 Mon Sep 17 00:00:00 2001 From: Bryce Date: Tue, 4 Nov 2025 14:26:01 -0800 Subject: [PATCH 1/4] external volume options update and use_disk on image struct --- components/schemas/images/Image.yml | 3 +++ .../external-volumes/ExternalVolumeOptions.yml | 7 +++---- platform/paths/images/images.yml | 3 +++ .../infrastructure/external-volumes/external-volume.yml | 2 ++ 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/components/schemas/images/Image.yml b/components/schemas/images/Image.yml index c0737310..21ca9f23 100644 --- a/components/schemas/images/Image.yml +++ b/components/schemas/images/Image.yml @@ -70,6 +70,9 @@ properties: description: Arguments to pass to the builder during a build of this image. additionalProperties: type: string + use_disk: + type: boolean + description: Flag that will skip using /dev/shm when building an image on factory. Will allow for building much larger images. - type: "null" builder: diff --git a/components/schemas/infrastructure/external-volumes/ExternalVolumeOptions.yml b/components/schemas/infrastructure/external-volumes/ExternalVolumeOptions.yml index 28266f2d..e7fd3101 100644 --- a/components/schemas/infrastructure/external-volumes/ExternalVolumeOptions.yml +++ b/components/schemas/infrastructure/external-volumes/ExternalVolumeOptions.yml @@ -2,10 +2,9 @@ title: ExternalVolumeOptions type: object description: Configuration options controlling the behavior of the volume. required: - - read_only + - create properties: - read_only: + create: type: boolean description: > - When true, the volume is attached as read-only and cannot be modified by - the consuming resource. + When true, the volume will be created if needed. diff --git a/platform/paths/images/images.yml b/platform/paths/images/images.yml index 0498c4b6..420ab0ba 100644 --- a/platform/paths/images/images.yml +++ b/platform/paths/images/images.yml @@ -122,6 +122,9 @@ post: description: An object holding key value build time arguments needed for the Image during build time. additionalProperties: type: string + use_disk: + type: boolean + description: Flag that will skip using /dev/shm when building an image on factory. Will allow for building much larger images. override: type: object description: An override object to be used for a single Image create request. diff --git a/platform/paths/infrastructure/external-volumes/external-volume.yml b/platform/paths/infrastructure/external-volumes/external-volume.yml index ff193d64..1fb3cabc 100644 --- a/platform/paths/infrastructure/external-volumes/external-volume.yml +++ b/platform/paths/infrastructure/external-volumes/external-volume.yml @@ -71,6 +71,8 @@ patch: identifier: description: The new identifier of the external volume. $ref: "../../../../components/schemas/Identifier.yml" + options: + $ref: ../../../../components/schemas/infrastructure/external-volumes/ExternalVolumeOptions.yml about: type: object properties: From a60142c10213463e8ccf85430d833d26d47b74c3 Mon Sep 17 00:00:00 2001 From: Bryce Date: Tue, 4 Nov 2025 14:32:49 -0800 Subject: [PATCH 2/4] update description --- .../infrastructure/external-volumes/ExternalVolumeOptions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/schemas/infrastructure/external-volumes/ExternalVolumeOptions.yml b/components/schemas/infrastructure/external-volumes/ExternalVolumeOptions.yml index e7fd3101..c67cda30 100644 --- a/components/schemas/infrastructure/external-volumes/ExternalVolumeOptions.yml +++ b/components/schemas/infrastructure/external-volumes/ExternalVolumeOptions.yml @@ -7,4 +7,4 @@ properties: create: type: boolean description: > - When true, the volume will be created if needed. + If the volume doesn't exist, attempt to create it on container start. From 98dfd41d6907376663df2739e459d99af8e905b8 Mon Sep 17 00:00:00 2001 From: Bryce Date: Tue, 4 Nov 2025 14:33:55 -0800 Subject: [PATCH 3/4] update descriptions --- components/schemas/images/Image.yml | 2 +- platform/paths/images/images.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/schemas/images/Image.yml b/components/schemas/images/Image.yml index 21ca9f23..098a8fb6 100644 --- a/components/schemas/images/Image.yml +++ b/components/schemas/images/Image.yml @@ -72,7 +72,7 @@ properties: type: string use_disk: type: boolean - description: Flag that will skip using /dev/shm when building an image on factory. Will allow for building much larger images. + description: Flag that will skip using /dev/shm when building an image on factory. Allows for building much larger images. - type: "null" builder: diff --git a/platform/paths/images/images.yml b/platform/paths/images/images.yml index 420ab0ba..edda0be6 100644 --- a/platform/paths/images/images.yml +++ b/platform/paths/images/images.yml @@ -124,7 +124,7 @@ post: type: string use_disk: type: boolean - description: Flag that will skip using /dev/shm when building an image on factory. Will allow for building much larger images. + description: Flag that will skip using /dev/shm when building an image on factory. Allows for building much larger images. override: type: object description: An override object to be used for a single Image create request. From b5a15ba8c9c451e7e61fe15ec9f1fe6b0de54da9 Mon Sep 17 00:00:00 2001 From: Bryce Date: Tue, 4 Nov 2025 14:35:00 -0800 Subject: [PATCH 4/4] description update further --- components/schemas/images/Image.yml | 2 +- platform/paths/images/images.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/schemas/images/Image.yml b/components/schemas/images/Image.yml index 098a8fb6..37eedf99 100644 --- a/components/schemas/images/Image.yml +++ b/components/schemas/images/Image.yml @@ -72,7 +72,7 @@ properties: type: string use_disk: type: boolean - description: Flag that will skip using /dev/shm when building an image on factory. Allows for building much larger images. + description: If true, will skip using /dev/shm when building an image on factory. Allows for building much larger images. - type: "null" builder: diff --git a/platform/paths/images/images.yml b/platform/paths/images/images.yml index edda0be6..e3640ebf 100644 --- a/platform/paths/images/images.yml +++ b/platform/paths/images/images.yml @@ -124,7 +124,7 @@ post: type: string use_disk: type: boolean - description: Flag that will skip using /dev/shm when building an image on factory. Allows for building much larger images. + description: If true, will skip using /dev/shm when building an image on factory. Allows for building much larger images. override: type: object description: An override object to be used for a single Image create request.