Skip to content

Commit

Permalink
Run codegen
Browse files Browse the repository at this point in the history
Signed-off-by: Ukjae Jeong <[email protected]>
  • Loading branch information
jeongukjae committed Oct 17, 2024
1 parent aa97ee8 commit 389a68c
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion docs/examples/workflows/misc/user_container.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
```
Expand Down Expand Up @@ -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
```

0 comments on commit 389a68c

Please sign in to comment.