Skip to content
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
2 changes: 1 addition & 1 deletion components/schemas/billing/plans/TierPlan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ properties:
type: boolean
virtual_provider:
type: boolean
san:
external_volumes:
type: boolean
max_daily_api_requests:
type:
Expand Down
23 changes: 12 additions & 11 deletions components/schemas/containers/config/ContainerVolume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,21 @@ properties:
description: A boolean where true signifies using the largest drive over 2TB for the target server.
- type: "null"
- type: "null"
san:
oneOf:
external:
anyOf:
- type: object
description: Configuration settings for a SAN type volume.
required:
- target_id
- lun_number
- mode
properties:
target_id:
$ref: ../../ID.yml
description: The ID of the SAN target.
lun_number:
type: integer
description: The LUN for the SAN target to attach.
identifier:
oneOf:
- $ref: ../../Identifier.yml
- type: "null"
description: The identifier of the external volume.
mode:
type: string
description: The attachment mode for the external volume
enum: [instance, host]
- type: "null"
destination:
type: string
Expand Down
5 changes: 5 additions & 0 deletions components/schemas/containers/summaries/VolumeSummary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ properties:
description: A unique hash for the given volume.
config:
"$ref": "../config/ContainerVolume.yml"
external:
description: The ID of external volume, if applicable.
oneOf:
- $ref: ../../ID.yml
- type: "null"
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,46 @@ title: VirtualMachineVolumeConfig
type: object
description: |
Represents the configuration for a volume attached to a virtual machine.
required:
- identifier
- read_only
properties:
local:
anyOf:
- type: object
required:
- max_size
properties:
max_size:
type: string
description: The maximum size allowed for the local volume.
examples:
- 100G
examples: [100G]
storage_pool:
anyOf:
- type: boolean
- type: "null"
description: Indicates if the volume is part of a storage pool.
required:
- max_size
- type: "null"
description: Configuration details for a local volume.
san:
external:
anyOf:
- type: object
properties:
target_id:
$ref: ../../../ID.yml
description: The ID of the SAN target.
lun_number:
type: integer
description: The LUN for the SAN target to attach
required:
- target_id
- lun_number
- mode
properties:
identifier:
oneOf:
- $ref: ../../../Identifier.yml
- type: "null"
description: The identifier of the external volume.
mode:
type: string
enum: [instance, host]
description: The attachment mode for the external volume.
- type: "null"
description: Configuration details for a SAN volume.
identifier:
$ref: ../../../Identifier.yml
read_only:
type: boolean
description: Specifies if the volume is mounted as read-only.
required:
- identifier
- read_only
3 changes: 1 addition & 2 deletions platform/paths/infrastructure/san/tasks/SanTask.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
title: SanTask.yml
title: SanTask
discriminator:
propertyName: action
mapping:
sync: SanSyncTask.yml
oneOf:
- $ref: SanSyncTask.yml

20 changes: 20 additions & 0 deletions stackspec/schema/StackSpecContainerVolume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@ properties:
- type: boolean
- $ref: StackVariable.yml
- $ref: StackVariable.yml
external:
anyOf:
- type: object
required:
- mode
properties:
identifier:
oneOf:
- $ref: ../../components/schemas/Identifier.yml
- $ref: StackVariable.yml
- type: "null"
description: The identifier of the external volume.
mode:
oneOf:
- type: string
description: The attachment mode for the external volume.
enum: [instance, host]
- $ref: StackVariable.yml
- $ref: StackVariable.yml
- type: "null"
destination:
description: The path this volume should be mounted at inside the container.
oneOf:
Expand Down