-
Notifications
You must be signed in to change notification settings - Fork 110
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
Add get_artifact
for template invocator use
#1284
Conversation
get_artifact
for template invocator use
72e8ec5
to
52f85a1
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1284 +/- ##
=====================================
Coverage 86.1% 86.2%
=====================================
Files 60 60
Lines 4079 4089 +10
Branches 648 652 +4
=====================================
+ Hits 3516 3526 +10
Misses 392 392
Partials 171 171 ☔ View full report in Codecov by Sentry. |
d3cd835
to
016dc4e
Compare
* Similarly to `get_parameter`, allows subnodes like Tasks and Steps to "get" an artifact from the parent template (DAG or Steps) Signed-off-by: Elliot Gunton <[email protected]>
Signed-off-by: Elliot Gunton <[email protected]>
* Tidy up Makefile targets * Add set-up-artifacts target to add minio storage from the argoproj-labs training materials Signed-off-by: Elliot Gunton <[email protected]>
Signed-off-by: Elliot Gunton <[email protected]>
Signed-off-by: Elliot Gunton <[email protected]>
Signed-off-by: Elliot Gunton <[email protected]>
016dc4e
to
b4d8894
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a question for my edification, LGTM I think :)
raise KeyError(f"No artifacts set. Artifact {name} not found.") | ||
for artifact in inputs.artifacts: | ||
if artifact.name == name: | ||
return Artifact(name=name, from_=f"{{{{inputs.artifacts.{artifact.name}}}}}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why we're copying across all the fields in get_parameter
, but only name in this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably shouldn't copy everything in get_parameter
, as all the other fields are irrelevant when used as an argument
Pull Request Checklist
Description of PR
Adds
get_artifact
toIOMixin
to allow tasks to get artifacts from the parent (DAG/Steps) template.Also added on-cluster test using Artifacts, which requires extra set up steps to add minio and configure it as the artifact repository.