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

fix: ensure images layers correspond with the image media type #2719

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

loganprice
Copy link
Contributor

@loganprice loganprice commented Sep 1, 2023

Fixes #2713 in case of a bug fix, this should point to a bug and any other related issue(s)

Description

  • Ensure zstd compression only gets applied to oci images.
  • When adding a layer to an image ensure that they are compatible if not convert them.
  • Create function to convert mediatypes between oci and docker types.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • Adds integration tests if needed.

See the contribution guide for more details.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

Release Notes

Describe any changes here so maintainer can include it in the release notes, or delete this block.

@loganprice loganprice changed the title feat: ensure images layers correspond with the image media type fix: ensure images layers correspond with the image media type Sep 6, 2023
@aaron-prindle
Copy link
Collaborator

aaron-prindle commented Sep 12, 2023

Thanks for the PR here @loganprice! Just tested this, works great. Left one small nit comment related to a typo.

Ensure zstd compression only gets applied to oci images.
When adding a layer to an image ensure that they are compatable if not convert them.
Create function to convert mediatypes between oci and docker types.
@aaron-prindle aaron-prindle merged commit 14b2ea5 into GoogleContainerTools:main Sep 13, 2023
10 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.

Prepopulating cache with kaniko warmer still causes problems with manifest mediaType
2 participants