Skip to content

Commit

Permalink
Update pkg/webhook/validatingwebhook/validate_vm_request.go
Browse files Browse the repository at this point in the history
Co-authored-by: Francisc Munteanu <[email protected]>
  • Loading branch information
rajivnathan and mfrancisc authored Nov 25, 2024
1 parent c3a6ceb commit d6c138f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webhook/validatingwebhook/validate_vm_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit d6c138f

Please sign in to comment.