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

Improve GetImage platform handling #557

Merged
merged 7 commits into from
Feb 28, 2025
Merged

Improve GetImage platform handling #557

merged 7 commits into from
Feb 28, 2025

Conversation

Itxaka
Copy link
Member

@Itxaka Itxaka commented Jan 16, 2025

local daemon is not able to pull multiple arch images nor you can ask it to give you an image and a platform. So if the local daemon has image X for platform amd64 and you wanted it for arm64 it would return that wrong platform image.

This commit checks if the platform is the proper one and if not falls back into asking the remote for the proper platform image

local daemon is not able to pull multiple arch images nor you can ask it
to give you an image and a platform. So if the local daemon has image X
for platform amd64 and you wanted it for arm64 it would return that
wrong platform image.

This commit checks if the platform is the proper one and if not falls
back into asking the remote for the proper platform image

Signed-off-by: Itxaka <itxaka@kairos.io>
@Itxaka Itxaka requested a review from a team January 16, 2025 10:15
Copy link
Member

@mauromorales mauromorales left a comment

Choose a reason for hiding this comment

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

noiiiice

@Itxaka Itxaka enabled auto-merge (squash) February 17, 2025 10:42
@Itxaka Itxaka merged commit 228b87b into main Feb 28, 2025
10 of 11 checks passed
@Itxaka Itxaka deleted the improve_getimage branch February 28, 2025 09:49
Copy link

codecov bot commented Feb 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.55%. Comparing base (fcbbc80) to head (56f17e4).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #557   +/-   ##
=======================================
  Coverage   52.55%   52.55%           
=======================================
  Files          19       19           
  Lines        1998     1998           
=======================================
  Hits         1050     1050           
  Misses        818      818           
  Partials      130      130           

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

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.

None yet

3 participants