Skip to content

Commit

Permalink
fix: allow equal capacity
Browse files Browse the repository at this point in the history
Signed-off-by: Dustin Scott <[email protected]>
  • Loading branch information
scottd018 committed Nov 27, 2024
1 parent 293e624 commit c4d8545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (wh *webhook) Validate(w http.ResponseWriter, r *http.Request) {
))

// ensure the requested capacity would not exceed the available capacity
if requested > available {
if requested >= available {
msg := fmt.Sprintf("requested capacity: [%d], exceeds available capacity: [%d]; currently used [%d]",
requested,
available,
Expand Down

0 comments on commit c4d8545

Please sign in to comment.