Skip to content

[Docs] Rename container_image to image for improved UX#6211

Merged
Future-Outlier merged 1 commit into
flyteorg:masterfrom
JiangJiaWei1103:rename-image-for-container-ux
May 1, 2025
Merged

[Docs] Rename container_image to image for improved UX#6211
Future-Outlier merged 1 commit into
flyteorg:masterfrom
JiangJiaWei1103:rename-image-for-container-ux

Conversation

@JiangJiaWei1103
Copy link
Copy Markdown
Member

@JiangJiaWei1103 JiangJiaWei1103 commented Feb 3, 2025

Tracking issue

NA

Why are the changes needed?

To enhance the user experience, the concept of container should be abstracted from flytekit users.

What changes were proposed in this pull request?

Rename container_image to image for flytekit.task() decorator.

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

flyteorg/flytekit#3094

Docs link

@flyte-bot
Copy link
Copy Markdown
Collaborator

Code Review Agent Run Status

  • Limitations and other issues: ❌ Failure - The AI Code Review Agent skipped reviewing this change because it is configured to exclude certain pull requests based on the source/target branch or the pull request status. You can change the settings here, or contact the agent instance creator at [email protected].

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.90%. Comparing base (7d53a6e) to head (702b295).
Report is 108 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6211   +/-   ##
=======================================
  Coverage   36.90%   36.90%           
=======================================
  Files        1317     1317           
  Lines      134061   134061           
=======================================
+ Hits        49474    49479    +5     
+ Misses      80294    80289    -5     
  Partials     4293     4293           
Flag Coverage Δ
unittests-datacatalog 51.58% <ø> (ø)
unittests-flyteadmin 52.48% <ø> (ø)
unittests-flytecopilot 30.99% <ø> (ø)
unittests-flytectl 62.33% <ø> (+0.04%) ⬆️
unittests-flyteidl 7.23% <ø> (ø)
unittests-flyteplugins 53.87% <ø> (ø)
unittests-flytepropeller 42.73% <ø> (ø)
unittests-flytestdlib 55.35% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

you can specify rules for binding container images. By default, flytekit binds a single container image, i.e.,
the [default Docker image](https://ghcr.io/flyteorg/flytekit), to all tasks. To modify this behavior,
use the `container_image` parameter available in the {py:func}`flytekit.task` decorator, and pass an
use the `image` parameter available in the {py:func}`flytekit.task` decorator, and pass an
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure I follow
I still see container_image as the arg name in the task API
https://docs.flyte.org/en/latest/api/flytekit/generated/flytekit.task.html

I think there's some discussion around changing it to be image indeed but not in effect AFAIK

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Hi @davidmirror-ops,

Great catch! I just completed the final modification in flyteorg/flytekit#3094 and I believe it'll be merged soon. Thanks!

Copy link
Copy Markdown
Contributor

@wild-endeavor wild-endeavor left a comment

Choose a reason for hiding this comment

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

+1 but please don't merge this until there's a deployed change (non-beta) in flytekit.

docs can be merged after the official Flyte release is out so it's okay to be a little delayed.

Thanks!

@Future-Outlier Future-Outlier merged commit 3b7e6bd into flyteorg:master May 1, 2025
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.

5 participants