We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4f1a58 commit d77cf39Copy full SHA for d77cf39
pkg/scheduler/framework/plugins/clusteraffinity/azure/capcacity.go
@@ -169,17 +169,3 @@ func extractCapacityRequirements(req placementv1beta1.PropertySelectorRequiremen
169
170
return &capacity, sku, nil
171
}
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