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: use overlay whiteouts when extracting tar layers #577

Merged
merged 1 commit into from Dec 13, 2023

Conversation

rchincha
Copy link
Contributor

If a tar layer has a deleted file, a whiteout entry is created. However, when extracting tar and overlay whiteouts are incompatible.

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@raharper raharper left a comment

Choose a reason for hiding this comment

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

Nice find and straight-forward fix. I added some requests for comments, see what you think.

pkg/overlay/pack.go Show resolved Hide resolved
test/publish.bats Show resolved Hide resolved
@rchincha rchincha force-pushed the overlay-fix branch 3 times, most recently from 04192a3 to 681f7f7 Compare December 12, 2023 23:13
Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ec24577) 57.14% compared to head (6c26f9c) 57.14%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #577   +/-   ##
=======================================
  Coverage   57.14%   57.14%           
=======================================
  Files          64       64           
  Lines        7516     7516           
=======================================
  Hits         4295     4295           
  Misses       2479     2479           
  Partials      742      742           

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

If a tar layer has a deleted file, a whiteout entry is created. However,
when extracting tar and overlay whiteouts are incompatible.

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
@raharper raharper merged commit b6996fd into project-stacker:main Dec 13, 2023
11 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.

None yet

2 participants