-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
volumes in WorkflowTemplates are not carried over to Workflows #3341
Comments
@foobarbecue do you know if this is a new problem? |
@alexec I don't know -- this was my first time trying volumes with WorkflowTemplates. So it's probably not new. BTW I also tried https://github.com/argoproj/argo/blob/master/examples/volumes-emptydir.yaml as a WorkflowTemplate with the same result. Probably time for me to learn to use PVCs anyway ;-) Edit: PVCs don't work either |
I'm working on this now:
Presumably there needs to be a server-side fix as well, for when you do I am more and more convinced that argo shot itself in the foot when it created workflowtemplates instead of adding features to templates :-p |
@sarabala1979 would you like to own this please? |
Yep, can do. I expect to have a PR today. Edit: Oh lol didn't read properly. @sarabala1979 can own it, for sure. I'll submit a PR in a bit though. |
Oh, sorry I was working on an old fork... there is no more WorkflowTemplateSpec in ui/src/models, it just references TemplateSpec... so that's a good thing. So it's just a matter of fixing the getWorkflow function now (and then the CLI fixes). |
First attempt to address argoproj#3341 . There's still a problem which causes "error": "resourceVersion should not be set on objects to be created" when you submit a template which has a workflowTemplateRef and a volume. (cherry picked from commit 40735ff780787683abaeecc23d1846ac43002cd4)
First attempt to address argoproj#3341 . There's still a problem which causes "error": "resourceVersion should not be set on objects to be created" when you submit a template which has a workflowTemplateRef and a volume.
Draft PR: #3441 |
I this #3436 fixes this too. |
Ah, cool, I'll try out #3437 and close this if it works |
I just tried it, at 81cba83 and get |
@foobarbecue - this needs two fixes. One to remove the panic that obscures the error (this was a pre-existing bug) an another to fix the actual bug #3441. |
Ah, ok. When we make a WF from a WFT, and the WF is referring to the WFT using workflowTemplateRef, do we want the volumes and stuff to be looked up on the WFT through the reference? Or do we want to copy them to the WF? My #3441 copies them to the WF, which I'm now thinking is the wrong way of doing it. I guess I'm going to have to study how workflowTemplateRefs are actually implemented. |
Fixed in v2.9 |
Just to confirm, I'm using this now and it works well! |
Checklist:
What happened:
This Workflow suceeds, and writes a file test.txt to the host:
However, if you convert it to a WorkflowTemplate and submit a Workflow based on it, then it fails with
volume 'nac-volume' not found in workflow spec
Here's the WorkflowTemplate version:
What you expected to happen:
I expected the
volumes
to be carried over to the Template from the WorkflowTemplate.How to reproduce it (as minimally and precisely as possible):
See "what happened" above.
Environment:
Message from the maintainers:
If you are impacted by this bug please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.
The text was updated successfully, but these errors were encountered: