Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add VM validation webhook #607
Add VM validation webhook #607
Changes from 4 commits
0eafb65
6fbef45
daa8fe9
780a412
349ee42
c3a6ceb
d6c138f
71f6795
bd4c1ca
a969f52
5bf6481
b6814f8
5de5ce5
716ab1c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not related to this PR - but TBH I find this a bit difficult to maintain , maybe in the future we could remove/simplify this check/test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree 💯
Check warning on line 24 in pkg/webhook/validatingwebhook/validate_vm_request.go
pkg/webhook/validatingwebhook/validate_vm_request.go#L23-L24
Check warning on line 29 in pkg/webhook/validatingwebhook/validate_vm_request.go
pkg/webhook/validatingwebhook/validate_vm_request.go#L27-L29
Check warning on line 37 in pkg/webhook/validatingwebhook/validate_vm_request.go
pkg/webhook/validatingwebhook/validate_vm_request.go#L36-L37
Check warning on line 48 in pkg/webhook/validatingwebhook/validate_vm_request.go
pkg/webhook/validatingwebhook/validate_vm_request.go#L44-L48
Check warning on line 54 in pkg/webhook/validatingwebhook/validate_vm_request.go
pkg/webhook/validatingwebhook/validate_vm_request.go#L52-L54
Check warning on line 60 in pkg/webhook/validatingwebhook/validate_vm_request.go
pkg/webhook/validatingwebhook/validate_vm_request.go#L58-L60
Check warning on line 73 in pkg/webhook/validatingwebhook/validate_vm_request.go
pkg/webhook/validatingwebhook/validate_vm_request.go#L72-L73
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not something to address now - but should we have all those tests going through the handler ? I mean merging this one with the
TestHandleValidateVMAdmissionRequestBlocked
into something likeTestHandleValidateVMAdmissionRequest
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, I should have done it that way. Done 71f6795
Check failure on line 90 in pkg/webhook/validatingwebhook/validate_vm_request_test.go