Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trhodeos committed Nov 4, 2024
1 parent cb77b0b commit e806756
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion metaflow/plugins/argo/argo_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -3483,8 +3483,8 @@ def ephemeral_volume_claims(self, claims=None):
"ephemeral": {
"volumeClaimTemplate": {
"spec": {
**values.get("spec", {}),
**VOLUME_CLAIM_TEMPLATE_DEFAULTS,
**values.get("spec", {}),
},
}
},
Expand Down
5 changes: 0 additions & 5 deletions metaflow/plugins/kubernetes/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@
"{METAFLOW_PARALLEL_STEP_CLI_OPTIONS_TEMPLATE}"
)

VOLUME_CLAIM_TEMPLATE_DEFAULTS = {
"accessModes": ["ReadWriteOnce"],
"resources": {"requests": {"storage": "1Gi"}},
}


class KubernetesException(MetaflowException):
headline = "Kubernetes error"
Expand Down
2 changes: 1 addition & 1 deletion metaflow/plugins/kubernetes/kubernetes_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ def create_job_spec(self):
ephemeral=client.V1EphemeralVolumeSource(
volume_claim_template=client.V1PersistentVolumeClaimTemplate(
spec={
**vals.get("spec", {}),
**VOLUME_CLAIM_TEMPLATE_DEFAULTS,
**vals.get("spec", {}),
},
)
),
Expand Down
2 changes: 1 addition & 1 deletion metaflow/plugins/kubernetes/kubernetes_jobsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,8 @@ def dump(self):
ephemeral=client.V1EphemeralVolumeSource(
volume_claim_template=client.V1PersistentVolumeClaimTemplate(
spec={
**vals.get("spec", {}),
**VOLUME_CLAIM_TEMPLATE_DEFAULTS,
**vals.get("spec", {}),
},
)
),
Expand Down

0 comments on commit e806756

Please sign in to comment.