Support placement preferences in stack deployment

Move of moby/moby#32743

Signed-off-by: Li Yi <denverdino@gmail.com>
This commit is contained in:
Li Yi
2017-05-06 21:49:42 +08:00
parent d844c487d4
commit b3459936db
7 changed files with 565 additions and 6 deletions

View File

@ -673,6 +673,11 @@ func TestFullExample(t *testing.T) {
},
Placement: types.Placement{
Constraints: []string{"node=foo"},
Preferences: []types.PlacementPreferences{
{
Spread: "node.labels.az",
},
},
},
EndpointMode: "dnsrr",
},