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

fix: Fixed artifact retrieval when templateRef in use. Fixes #9631, #9644. #9648

Merged
merged 2 commits into from
Sep 21, 2022

Conversation

brianloss
Copy link
Contributor

@brianloss brianloss commented Sep 21, 2022

Handle artifact retrieval when the workflow node has no templateName set but
does have templateRef set instead. Added a unit test that was broken before
the changes and works after the changes.

Fixes #9631, Fixes #9644
Signed-off-by: Brian Loss brianloss@gmail.com

…#9631.

Signed-off-by: Brian Loss <brianloss@gmail.com>
@brianloss
Copy link
Contributor Author

@juliev0 I saw you self-assigned #9631. Here is my attempt to fix it...

@brianloss brianloss marked this pull request as ready for review September 21, 2022 15:36
* Expose getTemplateFromNode in workflow/util/util.go
* Update uses of getTemplateFromNode to GetTemplateFromNode
* Call GetTemplateFromNode in artifact_server.go

Signed-off-by: Brian Loss <brianloss@gmail.com>
@brianloss brianloss changed the title fix: Fixed artifact retrieval when templateRef in use. Fixes #9631. fix: Fixed artifact retrieval when templateRef in use. Fixes #9631, #9644. Sep 21, 2022
@terrytangyuan terrytangyuan merged commit e556fe3 into argoproj:master Sep 21, 2022
@brianloss
Copy link
Contributor Author

@juliev0 or @terrytangyuan, do I need to do anything else to help get this fix gets into the next 3.4.x release? I wasn't sure since this went to master and there's a release-3.4 branch.

@brianloss brianloss deleted the fix-artifact-retrieval branch September 22, 2022 15:07
@terrytangyuan
Copy link
Member

@sarabala1979 Could we cherry-pick this?

juchaosong pushed a commit to juchaosong/argo-workflows that referenced this pull request Nov 3, 2022
…#9631, argoproj#9644. (argoproj#9648)

* fix: Fixed artifact retrieval when templateRef in use. Fixes argoproj#9631.

Signed-off-by: Brian Loss <brianloss@gmail.com>

* chore: Address review feedback - use util method

* Expose getTemplateFromNode in workflow/util/util.go
* Update uses of getTemplateFromNode to GetTemplateFromNode
* Call GetTemplateFromNode in artifact_server.go

Signed-off-by: Brian Loss <brianloss@gmail.com>

Signed-off-by: Brian Loss <brianloss@gmail.com>
Signed-off-by: juchao <juchao@coscene.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't access artifacts via UI when artifacts come from template referenced by templateref
4 participants