Skip to content

2026-08-07 argo workflow environment injection check

Checked infra_k8s Argo templates for automatic workflow ID environment injection.

Work Done

Inspected virdx/infra_k8s and its current/argo-workflows/templates manifests. The templates use {{workflow.name}} in output paths and shell text, but no workflow ID/name environment variable is declared. run-image only imports credential secrets and exports unrelated runtime configuration.

Lessons Learned: Pitfalls

The Argo workflow name is available for template substitution, which is different from automatic environment injection. The repository contains no workflow.uid, ARGO_WORKFLOW_*, or workflow-ID env references.

Lessons Learned: Improvements

When job code needs an identifier, explicitly add an env entry such as name: ARGO_WORKFLOW_NAME with value: "{{workflow.name}}"; use {{workflow.uid}} if the immutable workflow UID is required.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close