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

Detect arch when getting image for prebuild #1499

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

bkneis
Copy link
Contributor

@bkneis bkneis commented Dec 19, 2024

Fixes #1490

I can't test this though since I am not on ARM :(

I believe there should be a follow up task in improving how we get the image from the registry for kubernetes provider. Currently there are other instances of image.GetImage but have no way of knowing the arch yet. Most other instances also only need to know if the image exists which can be done more cost effectively then getting the entire image. Additionally performing this check requires the local user to be authenticated to the registry.

Copy link
Member

@pascalbreuninger pascalbreuninger left a comment

Choose a reason for hiding this comment

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

LGTM

Most other instances also only need to know if the image exists which can be done more cost effectively then getting the entire image.

Agree, we can potentially just use remote.Get and see if we get back a valid manifest

@pascalbreuninger pascalbreuninger merged commit 6a1c487 into loft-sh:main Dec 19, 2024
17 of 23 checks passed
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.

Devpod fails to pull prebuilt images on ARM64
2 participants