add volumeMounts to task
@@ -38,6 +38,11 @@ class Metadata:
name: str
namespace: str
+@dataclasses.dataclass
+class VolumeMount:
+ mountPath: str
+ name: str
+
@dataclasses.dataclass
class TaskStep:
@@ -51,6 +56,7 @@ class TaskSpec:
params: typing.List[_NamedParamWithValue]
steps: typing.List[TaskStep]
workspaces: typing.List[_NamedParamBase]=dataclasses.field(default_factory=list)
+ volumeMounts: typing.List[VolumeMount]=dataclasses.field(default_factory=list)
@dataclasses.dataclass
