From aa16cb1bf2ab9e13149c7cef49cb25d02054a4f1 Mon Sep 17 00:00:00 2001 From: Tullio Sebastiani Date: Wed, 17 Jan 2024 16:05:35 +0100 Subject: [PATCH] fixed io-hog scenario (#555) Signed-off-by: Tullio Sebastiani --- scenarios/arcaflow/io-hog/sub-workflow.yaml | 37 ++++++++++----------- scenarios/arcaflow/io-hog/workflow.yaml | 37 ++++++++++----------- 2 files changed, 36 insertions(+), 38 deletions(-) diff --git a/scenarios/arcaflow/io-hog/sub-workflow.yaml b/scenarios/arcaflow/io-hog/sub-workflow.yaml index 06f75468..516af174 100644 --- a/scenarios/arcaflow/io-hog/sub-workflow.yaml +++ b/scenarios/arcaflow/io-hog/sub-workflow.yaml @@ -2,6 +2,22 @@ version: v0.2.0 input: root: RootObject objects: + hostPath: + id: HostPathVolumeSource + properties: + path: + type: + type_id: string + Volume: + id: Volume + properties: + name: + type: + type_id: string + hostPath: + type: + id: hostPath + type_id: ref RootObject: id: input_item properties: @@ -73,25 +89,8 @@ input: description: the volume that will be attached to the pod. In order to stress the node storage only hosPath mode is currently supported type: - type_id: object - id: k8s_volume - properties: - name: - display: - description: name of the volume (must match the name in pod definition) - type: - type_id: string - required: true - hostPath: - display: - description: hostPath options expressed as string map (key-value) - type: - type_id: map - values: - type_id: string - keys: - type_id: string - required: true + type_id: ref + id: Volume required: true steps: diff --git a/scenarios/arcaflow/io-hog/workflow.yaml b/scenarios/arcaflow/io-hog/workflow.yaml index 2b039dce..2b7e70d6 100644 --- a/scenarios/arcaflow/io-hog/workflow.yaml +++ b/scenarios/arcaflow/io-hog/workflow.yaml @@ -2,6 +2,22 @@ version: v0.2.0 input: root: RootObject objects: + hostPath: + id: HostPathVolumeSource + properties: + path: + type: + type_id: string + Volume: + id: Volume + properties: + name: + type: + type_id: string + hostPath: + type: + id: hostPath + type_id: ref RootObject: id: RootObject properties: @@ -80,25 +96,8 @@ input: description: the volume that will be attached to the pod. In order to stress the node storage only hosPath mode is currently supported type: - type_id: object - id: k8s_volume - properties: - name: - display: - description: name of the volume (must match the name in pod definition) - type: - type_id: string - required: true - hostPath: - display: - description: hostPath options expressed as string map (key-value) - type: - type_id: map - values: - type_id: string - keys: - type_id: string - required: true + type_id: ref + id: Volume required: true steps: workload_loop: