-
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
TCPSocket could not be used as it was not checked in validation #4883
TCPSocket could not be used as it was not checked in validation #4883
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at https://cla.developers.google.com/. If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check the information on your CLA or see this help article on setting the email on your git commits. Once you've done that, please reply here to let us know. If you signed the CLA as a corporation, please let us know the company's name. |
@@ -454,6 +454,14 @@ func validateHTTPGetAction(http *api.HTTPGetAction) errs.ValidationErrorList { | |||
return allErrors | |||
} | |||
|
|||
func validateTCPSocketAction(tcp *api.TCPSocketAction) errs.ValidationErrorList { | |||
allErrors := errs.ValidationErrorList{} | |||
if tcp.Port.IntVal == 0 { |
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.
Do we want a comment about why this does not support named ports? E.g. "Named ports are probably going to be deprecated, so don't handle that here."
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.
Ill just make it correct - typo on my part
Attempting to use it gave the error "must register one handler". Added more tests for it.
823377c
to
d3a5a48
Compare
Comment addressed |
LGTM |
TCPSocket could not be used as it was not checked in validation
This raced with #4927 and broke the build. Reverting this one arbitrarily. |
Attempting to use it gave the error "must register one handler".
Added more tests for it.