-
Notifications
You must be signed in to change notification settings - Fork 14
Match and Compare platforms with OSFeatures #20
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
base: main
Are you sure you want to change the base?
Conversation
068785e to
60b9ddc
Compare
| { | ||
| "linux(+other)/amd64", | ||
| []string{"windows/amd64", "linux/amd64", "linux/arm64", "linux(+other)/amd64"}, | ||
| []string{"linux(+other)/amd64", "linux/amd64", "windows/amd64", "linux/arm64"}, |
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.
Do we need a case where the OSVersion prefixes the OSFeatures? ie linux(7.2+other)
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.
I can add such a case
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.
We should define how the OS version can be generically supported as well, possibly similar what is being done with OS Features here
cbf253f to
2f65869
Compare
|
I proposed this as a cleaner solution to containerd/containerd#12784. Using the feature in the platform, the manifest selection logic can prefer an erofs manifest based on the availability of the snapshotter. |
Updates the os part of the format to include features after the os version. The guarantees that the format may fully represent the platform structure. Signed-off-by: Derek McGowan <derek@mcg.dev>
Ensure the formatting output is consistent Signed-off-by: Derek McGowan <derek@mcg.dev>
Signed-off-by: Derek McGowan <derek@mcg.dev>
2f65869 to
9f73e76
Compare
Add-on to #16
This allows using the OSFeatures field for matching and comparing. To match, the checked platform's features must be a subset of the matcher's platforms. The matcher platform represents the supported features by the host and the checked platforms the platform needed for each image in an index or used to match a plugin instance.
This provides a way to add feature variation in a backwards compatible wherever platform matching is involved.