-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: wcow: add support for bind and cache mounts
Currently, mounts are not supported for WCOW builds, see #5678. This commit introduces support for bind and cache mounts. The remaining two require a little more work and consultation with the platform teams for enlightment. WIP Checklist: - [x] Support for bind mounts - [x] Support for cache mounts - [x] add frontend/dockerfile integration tests - [ ] add client integration tests - [ ] add documentatio - [ ] add note and plan on the missing feature(s) i.e. secret mounts (that need tmpfs) - [ ] spec out / second attempt for SSH mount Fixes #5603 Addresses part of #5678 Signed-off-by: Anthony Nandaa <[email protected]>
- Loading branch information
1 parent
3f4bcd3
commit 261ee88
Showing
4 changed files
with
201 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
//go:build !windows | ||
|
||
package oci | ||
|
||
// no effect for non-Windows | ||
func getMountType(mType string) string { | ||
return mType | ||
} | ||
|
||
// no effect for non-Windows | ||
func getAbsPath(p string) string { | ||
return p | ||
} | ||
|
||
// no effect for non-Windows | ||
func getCompleteSourcePath(p string) string { | ||
return p | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.