Skip to content

Commit d77cf39

Browse files
committed
fix
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
1 parent f4f1a58 commit d77cf39

File tree

1 file changed

+0
-14
lines changed
  • pkg/scheduler/framework/plugins/clusteraffinity/azure

1 file changed

+0
-14
lines changed

pkg/scheduler/framework/plugins/clusteraffinity/azure/capcacity.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -169,17 +169,3 @@ func extractCapacityRequirements(req placementv1beta1.PropertySelectorRequiremen
169169

170170
return &capacity, sku, nil
171171
}
172-
173-
// validateCapacityValue ensures the capacity value is within int32 bounds
174-
func validateCapacityValue(value int64) int32 {
175-
const maxInt32 = 1<<31 - 1
176-
const minInt32 = -1 << 31
177-
178-
if value > int64(maxInt32) {
179-
return maxInt32
180-
}
181-
if value < int64(minInt32) {
182-
return minInt32
183-
}
184-
return int32(value)
185-
}

0 commit comments

Comments
 (0)