-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Validation cleanup parts 5 & 6 together #18276
Conversation
This is the last validation PR that I have pending (though I have more that are half-cooked). |
GCE e2e build/test failed for commit a04f350fc1a52a59cbf03e76512647b9784da403. |
Labelling this PR as size/XXL |
a04f350
to
a879d7e
Compare
GCE e2e test build/test passed for commit a879d7eff3314b3bed65880b9a4a35cfd3b20280. |
I'm happy to reassign this - I know you are leaving on vaca soon |
Yeah, I'm really sorry-- the past few days I've been continually opening this up and then not actually reviewing it, I did it again like five minutes ago :( |
Shooting randomly into the crowd, I hit @caesarxuchao |
return nil, errors.NewInvalid("Service", service.Name, el) | ||
// TODO: what error should be returned here? It's not a | ||
// field-level validation failure (the field is valid), and it's | ||
// not really an internal error. |
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.
It seems the only possible cause of error here is the ports pool is depleted, so how about a 503 Service Unavailable
?
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 didn't want to change behavior in this PR, just cleanup. That's a good answer for a different PR :)
LGTM except a nit. |
a879d7e
to
8e43523
Compare
Rebasing now |
This makes the naming and reading a lot simpler.
8e43523
to
872faff
Compare
GCE e2e build/test failed for commit 8e43523fe198731f0e8cd45560ce00ecd2bedb7d. |
Thanks. LGTM. |
GCE e2e test build/test passed for commit 872faff. |
@k8s-bot test this please |
GCE e2e test build/test passed for commit 872faff. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e test build/test passed for commit 872faff. |
@k8s-bot unit test this please |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e test build/test passed for commit 872faff. |
Validation cleanup parts 5 & 6 together
Part 6 of several
Make a sub-pkg and shorter names for better readability
Some errors that happen during validation are not validation errors.
@lavalamp