Skip to content

Commit

Permalink
Update internal/datamodel/apply_computed_project_quota.go
Browse files Browse the repository at this point in the history
ACPQ: remove wrongly added allocated value for AZ separated base quota application. Unit test fixes follow.

Co-authored-by: Stefan Majewsky <[email protected]>
  • Loading branch information
VoigtS and majewsky authored Dec 5, 2024
1 parent 3d2b1dd commit f42f9ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/datamodel/apply_computed_project_quota.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ func acpqComputeQuotas(stats map[limes.AvailabilityZone]clusterAZAllocationStats
// AZ separated topology receives the basequota to all available AZs
if resInfo.Topology == liquid.AZSeparatedResourceTopology {
for az := range isRelevantAZ {
target[az][resourceID].Desired = cfg.ProjectBaseQuota - target[az][resourceID].Allocated
target[az][resourceID].Desired = cfg.ProjectBaseQuota
}
} else {
target[limes.AvailabilityZoneAny][resourceID].Desired = cfg.ProjectBaseQuota - sumOfLocalizedQuotas
Expand Down

0 comments on commit f42f9ed

Please sign in to comment.