-
Notifications
You must be signed in to change notification settings - Fork 671
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 name to ContainerPort #6127
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Kevin Su <[email protected]>
Code Review Agent Run #bd6268Actionable Suggestions - 1
Review Details
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6127 +/- ##
=======================================
Coverage 37.01% 37.01%
=======================================
Files 1318 1318
Lines 132525 132530 +5
=======================================
+ Hits 49052 49054 +2
- Misses 79228 79231 +3
Partials 4245 4245
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Changelist by BitoThis pull request implements the following key changes.
|
* | ||
* @generated from field: string name = 2; | ||
*/ | ||
name = ""; |
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.
Consider adding validation for the name
field since it's used to expose ports on pod's IP address. Empty string validation may be needed.
Code suggestion
Check the AI-generated fix before applying
name = ""; | |
private _name = ""; | |
set name(value: string) { | |
if (!value) { | |
throw new Error("ContainerPort name cannot be empty"); | |
} | |
this._name = value; | |
} |
Code Review Run #bd6268
Is this a valid issue, or was it incorrectly flagged by the Agent?
- it was incorrectly flagged
Tracking issue
NA
Why are the changes needed?
Allow people to change the name of the port in the PodSpec
What changes were proposed in this pull request?
Add name to ContainerPort proto
How was this patch tested?
Setup process
Screenshots
Check all the applicable boxes
Summary by Bito
This PR introduces a new 'name' field to ContainerPort configuration, enabling custom port naming in PodSpec. The implementation spans multiple language bindings (Go, JavaScript, Python, Rust) with complete type definitions and serialization support. The changes enhance container port configuration flexibility in Kubernetes pod specifications.Unit tests added: False
Estimated effort to review (1-5, lower is better): 3