From c4d8545e1680ef593b749c7bbdd5c41397c8c5e2 Mon Sep 17 00:00:00 2001 From: Dustin Scott Date: Wed, 27 Nov 2024 14:32:07 -0600 Subject: [PATCH] fix: allow equal capacity Signed-off-by: Dustin Scott --- webhook/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webhook/webhook.go b/webhook/webhook.go index e95a78a..2dd732f 100644 --- a/webhook/webhook.go +++ b/webhook/webhook.go @@ -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,