You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That guard also created an init container if woc.getContainerRuntimeExecutor() == common.ContainerRuntimeExecutorEmissary which is the only executor these days.
The init container creates these files:
* `/var/run/argo/argoexec` The binary, copied from the `argoexec` image.
* `/var/run/argo/template` A JSON encoding of the template.
Summary
We were wondering if the init container is needed if the workflow doesn't use input artifacts. Looking at the relevant code:
https://github.com/argoproj/argo-workflows/blob/61156f2eb2bafb795c8550233c11cb8a82c101e7/workflow/controller/workflowpod.go#L262..L265
It seems that the comment suggests it's not needed if no input artifacts are there. However there's no if guard around it.
Looking at the change in this commit:
62e0a8c#diff-0cd2c830c5575d814bc0dccc445c0483f0ea0411b72862784714ed44c6806280L236
It seems that there initially was a guard but that got removed. Either the comment is outdated or the guard went missing while refactoring.
Can anyone shed some light on this?
Use Cases
When no input artifact is used, this would speed up deploying the actual container.
The text was updated successfully, but these errors were encountered: