-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Added ssl-ports validation in case unused ports are introduced in the aws-load-balancer-ssl-ports annotation #3067
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 ssl-ports validation in case unused ports are introduced in the aws-load-balancer-ssl-ports annotation #3067
Conversation
Welcome @ahrakos! |
Hi @ahrakos. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
/assign |
@ahrakos: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
Codecov ReportBase: 54.32% // Head: 54.40% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #3067 +/- ##
==========================================
+ Coverage 54.32% 54.40% +0.07%
==========================================
Files 145 145
Lines 8410 8429 +19
==========================================
+ Hits 4569 4586 +17
- Misses 3511 3512 +1
- Partials 330 331 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
/ok-to-test |
You also need to modify the e2e tests since we now validate the ssl-ports. |
80e05c6
to
ed0ca12
Compare
@kishorj |
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 have some nit comments, changes look good otherwise.
pkg/service/model_build_listener.go
Outdated
@@ -115,10 +119,43 @@ func (t *defaultModelBuildTask) buildListenerCertificates(_ context.Context) []e | |||
return certificates | |||
} | |||
|
|||
func (t *defaultModelBuildTask) buildTLSPortsSet(_ context.Context) sets.String { | |||
func validateTLSPortsSet(rawTLSPorts []string, ports []corev1.ServicePort) ([]string, 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.
since the return value is not used, lets just return error from this function
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.
Done
ed0ca12
to
a739661
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahrakos, kishorj 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 |
…ssl-ports annotation
a739661
to
b275e44
Compare
/lgtm |
@ahrakos: you cannot LGTM your own PR. In response to this:
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. |
/lgtm |
…ssl-ports annotation (kubernetes-sigs#3067)
Merge in DEL/aws-load-balancer-controller-fork from update-from-upstream to main * commit '9bbcc80fd4e701018636af4147b27d69e4f128d3': update ko to v0.13.0 (kubernetes-sigs#3115) update module dependencies (kubernetes-sigs#3114) added validation for dummy ports introduced in the aws-load-balancer-ssl-ports annotation (kubernetes-sigs#3067) docs: add a new page about security groups management (kubernetes-sigs#2988) Add InboundCIDRs field to IngressClassParams (kubernetes-sigs#3089) Add SSLPolicy field to IngressClassParams (kubernetes-sigs#3025) enable EndpointsFailOpen by default (kubernetes-sigs#3078)
…ssl-ports annotation (kubernetes-sigs#3067)
Issue
Issue Link
fixes #2931
Description
Checklist
README.md
, or thedocs
directory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯