-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add image volume subpath support #9050
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
Add image volume subpath support #9050
Conversation
2598159
to
8a25cbe
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9050 +/- ##
==========================================
- Coverage 47.37% 47.26% -0.12%
==========================================
Files 158 159 +1
Lines 23334 23407 +73
==========================================
+ Hits 11055 11063 +8
- Misses 11190 11253 +63
- Partials 1089 1091 +2 🚀 New features to boost your workflow:
|
61ca9b4
to
1db6562
Compare
f83c27e
to
7b2fd10
Compare
4a8d78d
to
00c207e
Compare
00c207e
to
c2b6478
Compare
/retest |
c2b6478
to
6fd363e
Compare
6fd363e
to
976c6ba
Compare
/retest |
/retest @cri-o/cri-o-maintainers PTAL |
/retest |
976c6ba
to
1f74c5e
Compare
@cri-o/cri-o-maintainers PTAL |
1f74c5e
to
3a95114
Compare
@saschagrunert I've simplified the version in Podman to use OpenInRoot: containers/podman#25617 |
Do we want to make this a helper in c/common or do you prefer having a split-up implementation? |
3a95114
to
952643e
Compare
var cleanupSafeMounts []*safeMountInfo | ||
|
||
runtime.LockOSThread() | ||
|
||
cleanupFunc := func() { | ||
runtime.UnlockOSThread() | ||
|
||
for _, s := range cleanupSafeMounts { | ||
s.Close() | ||
} | ||
} | ||
|
||
defer func() { | ||
if err != nil { | ||
cleanupFunc() | ||
} | ||
}() |
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.
Hm, we may have to do this in scope of CreateContainer()
and not createSandboxContainer()
. 🤔
Add sub path support to image volumes and extend integration tests for that scenario. Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
952643e
to
fca4ea6
Compare
@giuseppe PTAL again. |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Small follow-up on cri-o#9050 Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
What type of PR is this?
/kind feature
What this PR does / why we need it:
Add sub path support to image volumes and extend integration tests for that scenario.
Which issue(s) this PR fixes:
None
Special notes for your reviewer:
Refers to kubernetes/kubernetes#130135
Needs kubernetes-sigs/cri-tools#1793
Does this PR introduce a user-facing change?