-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mount volumes defined in a WorkflowTemplate when it's called by another workflow #7444
Comments
This comment was marked as resolved.
This comment was marked as resolved.
I don't think it should be closed. |
It is not a bug. It is by design. if you are referring |
Hi @sarabala1979, is there any way to configure argo-workflows, so that volumeClaimTemplates: is always defined, per default, regardless of which workflow I start (like cron without Our use-case is similar. We have a template which needs a volume and has |
@wobrycki you can try workflowDefaults on workflow-controller configmap. WorkflowDefaults will be applied to all workflows that are executed on that controller.
|
This comment was marked as resolved.
This comment was marked as resolved.
@wobrycki As a workaround for this limitation, I have used workflow-of-workflows pattern where new instance of workflow invokes re-usable template since I can utilize |
Summary
What change needs making?
Volumes set on a WorkflowTemplate should be used when called by another workflow
Use Cases
When would you use this?
Here is what doesn't work today
works well
argo submit --from wftmpl/template1 --watch
works only if the commented out lines on the cron workflow are uncommented
argo submit --from cronwf/cronwf-ex1 --watch
The issue with adding the volume on the cronworkflow is that it's shared by all the runX however I want to keep it in the template1 to make sure each runX uses a different PVC (gp2 can't use ReadWriteMany for instance).
volumes available on the workflow template should be automatically mounted when called by another template. It could be not mounted only if the calling workflow already has a corresponding volume for instance.
Message from the maintainers:
Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.
The text was updated successfully, but these errors were encountered: