mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
chore: map compose volumes to server spec, initial volume scheduling
This commit is contained in:
@@ -21,6 +21,9 @@ type Constraint interface {
|
||||
func constraintsFromSpec(spec api.ServiceSpec) []Constraint {
|
||||
var constraints []Constraint
|
||||
|
||||
// TODO: add placement constraint based on the supported platforms of the image.
|
||||
// TODO: add placement constraint to limit machines with the image if pull policy is never.
|
||||
|
||||
if len(spec.Placement.Machines) > 0 {
|
||||
constraints = append(constraints, &PlacementConstraint{
|
||||
Machines: spec.Placement.Machines,
|
||||
|
||||
Reference in New Issue
Block a user