From d6c138f2427dd2e23aea2a62f62053679cfd6cab Mon Sep 17 00:00:00 2001 From: Rajiv Senthilnathan Date: Mon, 25 Nov 2024 10:52:09 -0500 Subject: [PATCH] Update pkg/webhook/validatingwebhook/validate_vm_request.go Co-authored-by: Francisc Munteanu --- pkg/webhook/validatingwebhook/validate_vm_request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/webhook/validatingwebhook/validate_vm_request.go b/pkg/webhook/validatingwebhook/validate_vm_request.go index 352fffaf..9967de6c 100644 --- a/pkg/webhook/validatingwebhook/validate_vm_request.go +++ b/pkg/webhook/validatingwebhook/validate_vm_request.go @@ -62,7 +62,7 @@ func (v VMRequestValidator) validate(body []byte) []byte { log.Info("sandbox user is trying to create a VM with RunStrategy configured", "AdmissionReview", admReview) // not allowed because it interferes with the Dev Sandbox Idler return denyAdmissionRequest(admReview, errors.New("this is a Dev Sandbox enforced restriction. Configuring RunStrategy is not allowed")) } - // at this point, it is clear the user isn't a sandbox user, allow request + // the user is not creating a VM with the `runStrategy` configured, allowing the request. return allowAdmissionRequest(admReview) }