Skip to content

Add platform match comparer interface#2581

Merged
crosbymichael merged 1 commit intocontainerd:masterfrom
dmcgowan:platform-matching
Aug 27, 2018
Merged

Add platform match comparer interface#2581
crosbymichael merged 1 commit intocontainerd:masterfrom
dmcgowan:platform-matching

Conversation

@dmcgowan
Copy link
Copy Markdown
Member

Adds a new platform interface for matching and comparing platforms.
This new interface allows both filtering and ordering of platforms to support running multiple platform and choosing the best platform.

Fixes issue where docker.io/library/alpine images couldn't be pulled on armv7 machines
Closes #2029
Allows support for custom ordering for Windows using build version

Adds a new platform interface for matching and comparing platforms.
This new interface allows both filtering and ordering of platforms
to support running multiple platform and choosing the best platform.

Signed-off-by: Derek McGowan <[email protected]>
@codecov-io
Copy link
Copy Markdown

codecov-io commented Aug 27, 2018

Codecov Report

Merging #2581 into master will decrease coverage by 0.49%.
The diff coverage is 0.87%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #2581     +/-   ##
========================================
- Coverage   44.59%   44.1%   -0.5%     
========================================
  Files          95      96      +1     
  Lines       10007   10120    +113     
========================================
  Hits         4463    4463             
- Misses       4822    4935    +113     
  Partials      722     722
Flag Coverage Δ
#linux 47.82% <1.02%> (-0.59%) ⬇️
#windows 40.98% <0.87%> (-0.57%) ⬇️
Impacted Files Coverage Δ
platforms/compare.go 0% <0%> (ø)
platforms/defaults.go 81.81% <33.33%> (-18.19%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d7dc384...9edcfcc. Read the comment docs.

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; I like this model and seems to match the discussion that went back and forth in the issue (client-specified, and easy to override/customize based on client requirements/needs)

@crosbymichael
Copy link
Copy Markdown
Member

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants