-
Notifications
You must be signed in to change notification settings - Fork 545
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow config files to be mounted (#1387)
Because we wanted to reuse the layer uploading code, we wrap the config bytes up as a Layer. Unfortunately, the partial.ConfigLayer implementation doesn't preserve the fact that for mountable images, we can perform a cross-repo mount. This change updates partial.ConfigLayer to look for a ConfigLayer implementation on the given image to see if it can simply dispatch to that, falling back to calculating it from the config bytes otherwise.
- Loading branch information
1 parent
12aeccc
commit 03a77f4
Showing
3 changed files
with
34 additions
and
0 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
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