-
Notifications
You must be signed in to change notification settings - Fork 554
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 LayerFolders to Windows platform config #828
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -328,7 +328,7 @@ Runtime implementations MAY support any valid values for platform-specific field | |
* **`linux`** (object, OPTIONAL) [Linux-specific configuration](config-linux.md). | ||
This MAY be set if **`platform.os`** is `linux` and MUST NOT be set otherwise. | ||
* **`windows`** (object, OPTIONAL) [Windows-specific configuration](config-windows.md). | ||
This MAY be set if **`platform.os`** is `windows` and MUST NOT be set otherwise. | ||
This MUST be set if **`platform.os`** is `windows` and MUST NOT be set otherwise. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not entirely clear on the maintainers' preference for this (@mrunalp was going to document them), but it's possible that they'll want There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thats an interesting point. Will it be a little odd that the other platform specific fields are not pointers as well? I would expect the maintainers would like to keep these fields uniform. |
||
* **`solaris`** (object, OPTIONAL) [Solaris-specific configuration](config-solaris.md). | ||
This MAY be set if **`platform.os`** is `solaris` and MUST NOT be set otherwise. | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -430,6 +430,8 @@ type SolarisAnet struct { | |
|
||
// Windows defines the runtime configuration for Windows based containers, including Hyper-V containers. | ||
type Windows struct { | ||
// LayerFolders contains a list of absolute paths to directories containing image layers. | ||
LayerFolders []string `json:"layerFolders"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just spotted this. Should be all lower-case for consistency. And the config-windows.json schema file needs the matching update. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There are currently some camelCase entries in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @darrenstahlmsft Could you open a PR to fix ^^ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @wking @jhowardmsft i modified the field name as per this suggestion, should I revert it back? It looks like there are linux fields that use camel case as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The Linux config tries to consistently use camelCase. I don't know if the maintainers care what convention the Windows-only fields use; probably wait for them to weigh in. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, lets leave this as is. I'll take an action item to clean up the casing once this is merged. Opened #857 to track. |
||
// Resources contains information for handling resource constraints for the container. | ||
Resources *WindowsResources `json:"resources,omitempty"` | ||
} | ||
|
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.
This is the first instance (as far as I know) of a REQUIRED property that is a direct child of a platform property (
windows
, in this case). Because REQUIRED is only “if the parent is set”, I think you'll want to adjust this section to say thatwindows
MUST be set whenplatform.os
iswindows
.Discussion in #830 may end up with
platform
being removed entirely. If that lands first, it will change the phrasing for thewindows
requirement, but requiring thewindows
object for configs aimed at thewindows
platform will still be something you want.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.
Updated
config.md
to specify that thewindows
configuration section is required if thewindows
platform is set. We can update this again if #830 lands before this PR.