-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
refactor(pkg/archive): factor out createImpliedDirectories helper #44196
Conversation
For additional context regarding why this value is presently unreliable/implementation defined, see #44106 (comment). |
3b119a2
to
395f455
Compare
This code was duplicated in two places -- factor it out, add documentation, and move magic numbers into a constant. Additionally, use the same permissions (0755) in both code paths, and ensure that the ID map is used in both code paths. Co-authored-by: Vasiliy Ulyanov <vulyanov@suse.de> Signed-off-by: Bjorn Neergaard <bneergaard@mirantis.com> Signed-off-by: Vasiliy Ulyanov <vulyanov@suse.de>
395f455
to
64e5936
Compare
64e5936
to
2e64eb6
Compare
Co-authored-by: Cory Snider <csnider@mirantis.com> Signed-off-by: Bjorn Neergaard <bneergaard@mirantis.com>
2e64eb6
to
5dff494
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
arf... I edited the top description, but that triggered another run of Jenkins, well 🤷♂️ |
For what it's worth, I already included the issue linking in the body, but at the bottom. I'll adopt the bulleted-on-top style in the future 😅 |
Oh! I completely overlooked. I nowadays also use the bullet-list formatting (where suitable), which renders the links with the linked description; not always useful, but sometimes saves me from having to "mouse-hover" (or "click") to see the linked issue/ |
@thaJeztah I've gone ahead and applied the |
@neersighted ah, thanks; thought it was on there already; yes, if you have time to prepare a cherry pick, that'd be good 👍 |
#44207 is up |
- What I did
pkg/archive
into a helper.0755
was chosen, and why image authors cannot currently rely on this value given it is not standardized/is fully implementation-defined.- How to verify it
CI
- Description for the changelog
Update the default permissions for directories implied but not explicitly defined by a layer to 0755 across all graphdrivers.
- A picture of a cute animal (not mandatory but encouraged)
![image](https://user-images.githubusercontent.com/1049222/192297134-45b39406-7d42-46dc-a833-83e4fe6bce53.png)