-
Notifications
You must be signed in to change notification settings - Fork 101
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
Added Ports to NodePort service-types in knative-serving #1541
Conversation
Welcome @eBeyond! It looks like this is your first PR to knative/operator 🎉 |
Hi @eBeyond. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
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.
@eBeyond: 6 warnings.
In response to this:
/lint
Fixes #1523
Proposed Changes
For the ServiceType NodePort it's now possible to add http-port and https-port. So the NodePorts of the service can be specified in the case that the standard isn't suitable.
Release NoteAdded http-port and https-port for the ServiceType NodePort (kourier config)
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.
HttpPort int32 `json:"http-port,omitempty"` | ||
|
||
// HttpsPort specifies the port used in case of ServiceType = "NodePort" for https (encrypted) traffic | ||
HttpsPort int32 `json:"https-port,omitempty"` |
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.
Golint naming: struct field HttpsPort should be HTTPSPort. More info.
@@ -41,6 +41,12 @@ type KourierIngressConfiguration struct { | |||
// ServiceType specifies the service type for kourier gateway. | |||
ServiceType v1.ServiceType `json:"service-type,omitempty"` | |||
|
|||
// HttpPort specifies the port used in case of ServiceType = "NodePort" for http traffic | |||
HttpPort int32 `json:"http-port,omitempty"` |
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.
Golint naming: struct field HttpPort should be HTTPPort. More info.
verifyBootstrapVolumeName(t, &u, tt.expConfigMapName) | ||
} | ||
}) | ||
} | ||
} | ||
|
||
func verifyGatewayServiceTypeNodePortHttp(t *testing.T, u *unstructured.Unstructured, expHttpPort int32) { |
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.
Golint naming: func parameter expHttpPort should be expHTTPPort. More info.
} | ||
} | ||
|
||
func verifyGatewayServiceTypeNodePortHttps(t *testing.T, u *unstructured.Unstructured, expHttpsPort int32) { |
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.
Golint naming: func parameter expHttpsPort should be expHTTPSPort. More info.
expNamespace string | ||
expServiceType string | ||
expConfigMapName string | ||
expNodePortsHttp int32 |
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.
Golint naming: struct field expNodePortsHttp should be expNodePortsHTTP. More info.
expServiceType string | ||
expConfigMapName string | ||
expNodePortsHttp int32 | ||
expNodePortsHttps int32 |
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.
Golint naming: struct field expNodePortsHttps should be expNodePortsHTTPS. More info.
/ok-to-test |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1541 +/- ##
==========================================
+ Coverage 79.10% 79.25% +0.14%
==========================================
Files 40 40
Lines 1809 1822 +13
==========================================
+ Hits 1431 1444 +13
Misses 275 275
Partials 103 103
☔ View full report in Codecov by Sentry. |
@eBeyond Plz fix all Golint naming issues. |
Changed the Http/Https to HTTP/HTTPS as requested by the linter. |
/test eventing-upgrade-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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: eBeyond, houshengbo 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 |
/lint
Fixes #1523
Proposed Changes
For the ServiceType NodePort it's now possible to add http-port and https-port. So the NodePorts of the service can be specified in the case that the standard isn't suitable.
Release Note