Skip to content
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

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

pierDipi
Copy link
Member

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

  • Add ports to KafkaChannel's external name service

Release Note

Add ports to KafkaChannel's externalName services

Docs

N/A

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>
@knative-prow knative-prow bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. area/control-plane size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 17, 2023
@@ -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?
Copy link
Member Author

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

Copy link
Contributor

@matzew matzew left a 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

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Apr 17, 2023
@knative-prow
Copy link

knative-prow bot commented Apr 17, 2023

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@codecov
Copy link

codecov bot commented Apr 17, 2023

Codecov Report

Merging #3045 (b5df7e9) into main (ec3ad88) will increase coverage by 16.89%.
The diff coverage is n/a.

@@              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     
Flag Coverage Δ
java-unittests 81.10% <ø> (ø)

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.

pierDipi added a commit to pierDipi/eventing-istio that referenced this pull request Apr 17, 2023
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@pierDipi
Copy link
Member Author

/test channel-integration-tests-sasl-ssl

@knative-prow knative-prow bot merged commit 26676d7 into knative-extensions:main Apr 17, 2023
25 of 26 checks passed
knative-prow bot pushed a commit to knative-extensions/eventing-istio that referenced this pull request May 4, 2023
* 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>
pierDipi added a commit to pierDipi/eventing-istio that referenced this pull request May 4, 2023
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/control-plane lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants