chore: map compose volumes to server spec, initial volume scheduling

This commit is contained in:
Pavel Sviderski committed 2025-04-21 21:25:26 +10:00
1 parent 143e68cc95
commit e5957d9d6b
7 files changed
+292 -41

No files matched your search

@@ -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,