mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
chore: replace machine filter with placement constraint in service spec
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package api
|
||||
|
||||
// Placement defines the placement constraints for service containers.
|
||||
type Placement struct {
|
||||
// Machines is a list of machine names or IDs where service containers are allowed to be deployed.
|
||||
// If empty, containers can be deployed to any available machine in the cluster.
|
||||
Machines []string `json:",omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user