Skip to content

Commit

Permalink
Add nova topologies (#653)
Browse files Browse the repository at this point in the history
Co-authored-by: Sandro <[email protected]>
  • Loading branch information
VoigtS and SuperSandro2000 authored Jan 31, 2025
1 parent e8d81c8 commit f1347d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/liquids/nova/liquid.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,28 +143,33 @@ func (l *Logic) BuildServiceInfo(ctx context.Context) (liquid.ServiceInfo, error
resources := map[liquid.ResourceName]liquid.ResourceInfo{
"cores": {
Unit: liquid.UnitNone,
Topology: liquid.AZAwareResourceTopology,
HasCapacity: true,
HasQuota: true,
NeedsResourceDemand: true,
},
"instances": {
Unit: liquid.UnitNone,
Topology: liquid.AZAwareResourceTopology,
HasCapacity: true,
HasQuota: true,
NeedsResourceDemand: true,
},
"ram": {
Unit: liquid.UnitMebibytes,
Topology: liquid.AZAwareResourceTopology,
HasCapacity: true,
HasQuota: true,
NeedsResourceDemand: true,
},
"server_groups": {
Unit: liquid.UnitNone,
Topology: liquid.FlatResourceTopology,
HasQuota: true,
},
"server_group_members": {
Unit: liquid.UnitNone,
Topology: liquid.FlatResourceTopology,
HasQuota: true,
},
}
Expand All @@ -176,6 +181,7 @@ func (l *Logic) BuildServiceInfo(ctx context.Context) (liquid.ServiceInfo, error
if IsSplitFlavor(f) {
resources[ResourceNameForFlavor(f.Name)] = liquid.ResourceInfo{
Unit: liquid.UnitNone,
Topology: liquid.AZAwareResourceTopology,
HasCapacity: true,
HasQuota: true,
NeedsResourceDemand: true,
Expand Down

0 comments on commit f1347d7

Please sign in to comment.