Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions metaflow/plugins/argo/argo_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -3147,6 +3147,13 @@ def _container(cmds):
+ ARGO_WORKFLOWS_KUBERNETES_SECRETS.split(",")
if k
],
security_context=(
kubernetes_sdk.V1SecurityContext(
**resources["security_context"]
)
if resources.get("security_context")
else None
),
resources=kubernetes_sdk.V1ResourceRequirements(
requests={
"cpu": str(kube_defaults["cpu"]),
Expand Down Expand Up @@ -3305,6 +3312,13 @@ def _error_msg_capture_hook_templates(self):
+ ARGO_WORKFLOWS_KUBERNETES_SECRETS.split(",")
if k
],
security_context=(
kubernetes_sdk.V1SecurityContext(
**resources["security_context"]
)
if resources.get("security_context")
else None
),
resources=kubernetes_sdk.V1ResourceRequirements(
# NOTE: base resources for this are kept to a minimum to save on running costs.
# This has an adverse effect on startup time for the daemon, which can be completely
Expand Down Expand Up @@ -3796,6 +3810,13 @@ def _heartbeat_daemon_template(self):
+ ARGO_WORKFLOWS_KUBERNETES_SECRETS.split(",")
if k
],
security_context=(
kubernetes_sdk.V1SecurityContext(
**resources["security_context"]
)
if resources.get("security_context")
else None
),
resources=kubernetes_sdk.V1ResourceRequirements(
# NOTE: base resources for this are kept to a minimum to save on running costs.
# This has an adverse effect on startup time for the daemon, which can be completely
Expand Down