From c25661ef895d82a0bce325071a3de3104e786687 Mon Sep 17 00:00:00 2001 From: Bryce Date: Mon, 10 Nov 2025 12:52:38 -0800 Subject: [PATCH] volume stack spec udpates to external --- .../external-volumes/ExternalVolumeEvents.yml | 4 ++++ stackspec/schema/StackSpecContainerVolume.yml | 10 +--------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/components/schemas/infrastructure/external-volumes/ExternalVolumeEvents.yml b/components/schemas/infrastructure/external-volumes/ExternalVolumeEvents.yml index 4195b42c..57de18fe 100644 --- a/components/schemas/infrastructure/external-volumes/ExternalVolumeEvents.yml +++ b/components/schemas/infrastructure/external-volumes/ExternalVolumeEvents.yml @@ -15,6 +15,10 @@ properties: deleted: description: The timestamp of when the attached volume was deleted. $ref: "../../DateTime.yml" + last_verified: + $ref: "../../DateTime.yml" + description: > + Timestamp of the last successful verification event for this volume. last_sync: $ref: "../../DateTime.yml" description: > diff --git a/stackspec/schema/StackSpecContainerVolume.yml b/stackspec/schema/StackSpecContainerVolume.yml index adf0ce36..465318ed 100644 --- a/stackspec/schema/StackSpecContainerVolume.yml +++ b/stackspec/schema/StackSpecContainerVolume.yml @@ -28,21 +28,13 @@ properties: external: anyOf: - type: object - required: - - mode properties: id: oneOf: - - $ref: ../../components/schemas/ID.yml + - $ref: ../../components/schemas/HybridIdentifier.yml - $ref: StackVariable.yml - type: "null" description: The ID 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: