-
Notifications
You must be signed in to change notification settings - Fork 310
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 handling of ImageConfig creation #983
Conversation
Signed-off-by: Yee Hing Tong <[email protected]>
Signed-off-by: Yee Hing Tong <[email protected]>
def create_from( | ||
cls, default_image: Optional[Image], other_images: typing.Optional[typing.List[Image]] = None | ||
) -> ImageConfig: | ||
if default_image and not isinstance(default_image, Image): |
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.
Why not a simple str too and then we do the conversion?
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.
will add in a separate PR.
Codecov Report
@@ Coverage Diff @@
## master #983 +/- ##
==========================================
+ Coverage 86.26% 86.28% +0.01%
==========================================
Files 252 252
Lines 24129 24137 +8
Branches 2745 2747 +2
==========================================
+ Hits 20815 20826 +11
+ Misses 2846 2843 -3
Partials 468 468
Continue to review full report at Codecov.
|
Signed-off-by: Yee Hing Tong <[email protected]>
Signed-off-by: Yee Hing Tong [email protected]
TL;DR
create_from
is not anImage
object.from_images
work.Type
Are all requirements met?
Complete description
How did you fix the bug, make the feature etc. Link to any design docs etc
Tracking Issue
https://github.com/flyteorg/flyte/issues/
Follow-up issue
NA
OR
https://github.com/flyteorg/flyte/issues/