Skip to content

Commit eca239a

Browse files
committed
added memory enum and size field
1 parent 93c94d0 commit eca239a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

datacrunch/containers/containers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class EnvVarType(str, Enum):
1919
class VolumeMountType(str, Enum):
2020
SCRATCH = "scratch"
2121
SECRET = "secret"
22+
MEMORY = "memory"
2223

2324

2425
class ContainerRegistryType(str, Enum):
@@ -82,7 +83,7 @@ class EnvVar:
8283
type: EnvVarType
8384

8485

85-
@dataclass_json
86+
@dataclass_json(undefined=Undefined.EXCLUDE)
8687
@dataclass
8788
class VolumeMount:
8889
"""Volume mount configuration for containers.
@@ -92,6 +93,7 @@ class VolumeMount:
9293
"""
9394
type: VolumeMountType
9495
mount_path: str
96+
size_in_gb: Optional[int] = None
9597

9698

9799
@dataclass_json

0 commit comments

Comments
 (0)