Skip to content

Commit

Permalink
Spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Jul 30, 2024
1 parent 533a4ce commit e52d349
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
1 change: 0 additions & 1 deletion cmd/metal-api/internal/service/partition-service.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,6 @@ func (r *partitionResource) calcPartitionCapacity(pcr *v1.PartitionCapacityReque
machinesWithIssues, err := issues.Find(&issues.Config{
Machines: ms,
EventContainers: ecs,
Only: issues.AllIssueTypes(),
})
if err != nil {
return nil, fmt.Errorf("unable to calculate machine issues: %w", err)
Expand Down
24 changes: 15 additions & 9 deletions spec/metal-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -4392,34 +4392,34 @@
"v1.ServerCapacity": {
"properties": {
"allocated": {
"description": "allocated servers with this size",
"description": "allocated machines with this size",
"format": "int32",
"type": "integer"
},
"faulty": {
"description": "servers with issues with this size",
"description": "machines with issues with this size",
"format": "int32",
"type": "integer"
},
"faultymachines": {
"description": "servers with issues with this size",
"description": "machine ids with issues with this size",
"items": {
"type": "string"
},
"type": "array"
},
"free": {
"description": "free servers with this size",
"description": "free machines with this size",
"format": "int32",
"type": "integer"
},
"other": {
"description": "servers neither free, allocated or faulty with this size",
"description": "machines neither allocated or waiting with this size",
"format": "int32",
"type": "integer"
},
"othermachines": {
"description": "servers neither free, allocated or faulty with this size",
"description": "machine ids neither allocated or waiting with this size",
"items": {
"type": "string"
},
Expand All @@ -4431,18 +4431,23 @@
"type": "integer"
},
"size": {
"description": "the size of the server",
"description": "the size of the machine",
"type": "string"
},
"total": {
"description": "total amount of servers with this size",
"description": "total amount of machines with this size",
"format": "int32",
"type": "integer"
},
"usedreservations": {
"description": "the amount of used reservations for this size",
"format": "int32",
"type": "integer"
},
"waiting": {
"description": "machines waiting for allocation with this size",
"format": "int32",
"type": "integer"
}
},
"required": [
Expand All @@ -4455,7 +4460,8 @@
"reservations",
"size",
"total",
"usedreservations"
"usedreservations",
"waiting"
]
},
"v1.SizeConstraint": {
Expand Down

0 comments on commit e52d349

Please sign in to comment.