-
Notifications
You must be signed in to change notification settings - Fork 263
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 port name #915
add port name #915
Conversation
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.
@itsmurugappan: 0 warnings.
In response to this:
Description
Add provision to specify port name
Changes
- Change port field from int32 to string
- Accept port field as portname:port
- Set the container port option accordingly
Reference
Fixes #912
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
/test pull-knative-client-integration-tests |
1 similar comment
/test pull-knative-client-integration-tests |
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.
Definitely address the errors in parsing ports values as @navidshaikh mentions.
Also, it feels weird that some of the comments use 8080 and some use port 80. Is there a specific reason? I’d use 8080 since that’s less “dangerous” and anyone using 80 should know their risk...
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.
suggested input verification and additional test cases, rest lgtm
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.
Looks good with some minor suggestions (error message with context, reduced complexity)
Feel free to change or use /unhold
to get the PR merged immediately.
/hold
/lgtm
The following is the coverage report on the affected files.
|
@googlebot rescan |
/unhold |
Thanks a lot ! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: itsmurugappan, rhuss The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -40,6 +40,12 @@ type VolumeSourceType int | |||
const ( | |||
ConfigMapVolumeSourceType VolumeSourceType = iota | |||
SecretVolumeSourceType | |||
PortFormatErr = "The port specification '%s' is not valid. Please provide in the format 'NAME:PORT', where 'NAME' is optional. Examples: '--port h2c:8080' , '--port 8080'." |
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.
error text should begin with lower case
Description
Add provision to specify port name
Changes
Reference
Fixes #912