Skip to content
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

feat: Retry creating wftmpl that references another wftmpl in the same operation #5198

Closed
wants to merge 1 commit into from

Conversation

simster7
Copy link
Member

Fixes: #5173

Looking for feedback for this solution. If feedback is good, then I will move to clean the code, add it to other similar areas (e.g. ClusterWorkflowTemplates), and add test.

I initially considered doing topographical sorting on all the workflow templates before attempting to create this. However, that gets a bit messy (have to consider, for example, all steps of all templates of all WorkflowTemplates to look for references). Also, since I expect this use case to come up infrequently, I prefer a "lazy" approach where we only engage this code if we need to.

…e operation

Signed-off-by: Simon Behar <simbeh7@gmail.com>
created, err := serviceClient.CreateWorkflowTemplate(ctx, &workflowtemplatepkg.WorkflowTemplateCreateRequest{
Namespace: wftmpl.Namespace,
Template: &wftmpl,
})
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking for feedback for this solution. If feedback is good, then I will move to clean the code, add it to other similar areas (e.g. ClusterWorkflowTemplates), and add test.

@alexec
Copy link
Contributor

alexec commented Feb 25, 2021

I think withArtifacts should be a priority over this.

@simster7
Copy link
Member Author

simster7 commented Feb 25, 2021

I think withArtifacts should be a priority over this.

I presume you mean data? If so, it's waiting for review!

This PR took me around 30 minutes to do, btw.

@simster7 simster7 marked this pull request as draft February 26, 2021 19:25
@simster7
Copy link
Member Author

simster7 commented Mar 5, 2021

Closing for now

@tvalasek
Copy link
Contributor

hi. this is still an issue in Argo v3.1.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linter fails on templateRef for WorkflowTemplate
3 participants