-
Notifications
You must be signed in to change notification settings - Fork 110
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
Don't override ports for KafkaChannel's service #3045
Don't override ports for KafkaChannel's service #3045
Conversation
By not having the port defined on the KafkaChannel's external name service, istio (actually Envoy) can't find a matching route for requests to the channel's service without any port, see [1] [1] https://www.envoyproxy.io/docs/envoy/latest/faq/debugging/why_is_my_route_not_found Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@@ -53,11 +53,8 @@ func MakeChannelServiceName(name string) string { | |||
// pointing to the specified service in a namespace. | |||
func ExternalService(namespace, service string) ServiceOption { | |||
return func(svc *corev1.Service) error { | |||
// TODO this overrides the current serviceSpec. Is this correct? |
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.
It was already identified as wrong but then left there as TODO
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.
the TODO
was just copied over from the "eventing-kafka" repo, but looks like it was there for a reason 😄
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: matzew, pierDipi 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 |
Codecov Report
@@ Coverage Diff @@
## main #3045 +/- ##
=============================================
+ Coverage 64.21% 81.10% +16.89%
Complexity 754 754
=============================================
Files 156 77 -79
Lines 11034 2625 -8409
Branches 232 232
=============================================
- Hits 7085 2129 -4956
+ Misses 3437 361 -3076
+ Partials 512 135 -377
Flags with carried forward coverage won't be shown. Click here to find out more. see 79 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
/test channel-integration-tests-sasl-ssl |
26676d7
into
knative-extensions:main
* Include Channel’s ExternalName services in Istio mesh Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Run hack/update-codegen.sh Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Format Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Test and release setup Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Upgrade dependencies Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add IMC and KafkaChannel tests Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Format and fix tests Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Upgrade dependencies Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add access to configmaps Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add config-features for testing and install script for dev Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Debug logging for istio enabled Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Fix controller Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Include knative-extensions/eventing-kafka-broker#3045 Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Use core zap Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Fix unit tests Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add unit tests Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Upgrade dependencies and artifacts Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Fix host name Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Upgrade dependencies Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Upgrade dependencies Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Upgrade deps and artifacts Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add full config-features Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Fix boilerplate check Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Improve log message Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * More boilerplate check fixes Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Update codegen Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> --------- Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
…ions#16) * Include Channel’s ExternalName services in Istio mesh Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Run hack/update-codegen.sh Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Format Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Test and release setup Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Upgrade dependencies Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add IMC and KafkaChannel tests Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Format and fix tests Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Upgrade dependencies Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add access to configmaps Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add config-features for testing and install script for dev Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Debug logging for istio enabled Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Fix controller Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Include knative-extensions/eventing-kafka-broker#3045 Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Use core zap Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Fix unit tests Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add unit tests Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Upgrade dependencies and artifacts Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Fix host name Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Upgrade dependencies Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Upgrade dependencies Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Upgrade deps and artifacts Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add full config-features Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Fix boilerplate check Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Improve log message Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * More boilerplate check fixes Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Update codegen Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> --------- Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
By not having the port defined on the KafkaChannel's external
name service, istio (actually Envoy) can't find a matching route
for requests to the channel's service without any port, see [1]
[1] https://www.envoyproxy.io/docs/envoy/latest/faq/debugging/why_is_my_route_not_found
Proposed Changes
Release Note
Docs
N/A