Skip to content

Commit

Permalink
build: rework node resolution
Browse files Browse the repository at this point in the history
This patch reworks and updates the node resolution logic for selecting a
node from a builder.

The new implementation reworks the logic to make use of containerd's
platforms.Matcher interface instead of manually associated strings, and
additionally provides a few behavioural changes over the original
implementation, namely platforms can be matched with non-strict
semantics. e.g. i386 builds can be scheduled on an amd64 node, arm/v6
builds can be scheduled on an arm/v7 node.

We also add a new collection of tests for tracking regressions and
making the intended behaviour clearer.

Signed-off-by: Justin Chadwell <[email protected]>
  • Loading branch information
jedevc authored and crazy-max committed Nov 14, 2023
1 parent 80aa28f commit 616fb3e
Show file tree
Hide file tree
Showing 3 changed files with 661 additions and 243 deletions.
Loading

0 comments on commit 616fb3e

Please sign in to comment.