Skip to content

Commit

Permalink
Merge branch 'vmWebhookUpdate' of github.com:rajivnathan/member-opera…
Browse files Browse the repository at this point in the history
…tor into vmWebhookUpdate
  • Loading branch information
rajivnathan committed Nov 25, 2024
2 parents 71f6795 + d6c138f commit bd4c1ca
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 bd4c1ca

Please sign in to comment.