From 389a68c326be24e86b1ad7675ae51986b14db4e5 Mon Sep 17 00:00:00 2001 From: Ukjae Jeong Date: Thu, 17 Oct 2024 11:15:44 +0100 Subject: [PATCH] Run codegen Signed-off-by: Ukjae Jeong --- .../examples/workflows/misc/user_container.md | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/docs/examples/workflows/misc/user_container.md b/docs/examples/workflows/misc/user_container.md index 7884f0c12..e2af4bfa2 100644 --- a/docs/examples/workflows/misc/user_container.md +++ b/docs/examples/workflows/misc/user_container.md @@ -26,7 +26,19 @@ This example showcases the user of a user container with a volume mount. print("hi") - with Workflow(generate_name="sidecar-volume-mount-", entrypoint="d") as w: + with Workflow( + generate_name="sidecar-volume-mount-", + entrypoint="d", + volume_claim_templates=[ + m.PersistentVolumeClaim( + metadata=m.ObjectMeta(name="something"), + spec=m.PersistentVolumeClaimSpec( + access_modes=["ReadWriteOnce"], + resources=m.ResourceRequirements(requests={"storage": "64Mi"}), + ), + ) + ], + ) as w: with DAG(name="d"): foo() ``` @@ -61,5 +73,14 @@ This example showcases the user of a user container with a volume mount. volumeMounts: - mountPath: /whatever name: something + volumeClaimTemplates: + - metadata: + name: something + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 64Mi ```