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

Include Channel’s ExternalName services in Istio mesh #16

Merged
merged 27 commits into from
May 4, 2023

Conversation

pierDipi
Copy link
Member

@pierDipi pierDipi commented Apr 11, 2023

Implementation for https://docs.google.com/document/d/1Y9BukjzUxfl920KltVtH4L5gta0pHOt5NEsLqdgZNY4/edit

For review I'd recommend checking out the PR locally

To enabled the integration you need to specify in config-features an istio flag:

apiVersion: v1
kind: ConfigMap
metadata:
  name: config-features
  namespace: knative-eventing
data:
  istio: "enabled"

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@knative-prow knative-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Apr 11, 2023
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@pierDipi
Copy link
Member Author

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@pierDipi
Copy link
Member Author

Waiting for knative/eventing#6862

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@knative-prow-robot knative-prow-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels May 2, 2023
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 2, 2023
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@knative-prow knative-prow bot removed the lgtm Indicates that a PR is ready to be merged. label May 4, 2023
@pierDipi
Copy link
Member Author

pierDipi commented May 4, 2023

https://github.com/pierDipi/eventing-istio/blob/channel-reconciler/pkg/reconciler/service/service.go#L60-L64

The comment here is slightly different than the log. Wanna adjust?

Done

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Copy link

@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.

/lgtm
/approve

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

knative-prow bot commented May 4, 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

Copy link
Contributor

@creydr creydr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from my side. Leaving it open for others to review too

@pierDipi
Copy link
Member Author

pierDipi commented May 4, 2023

@creydr do you have any comments?

@pierDipi
Copy link
Member Author

pierDipi commented May 4, 2023

lol :)

@pierDipi
Copy link
Member Author

pierDipi commented May 4, 2023

/unhold

@knative-prow knative-prow bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 4, 2023
@pierDipi
Copy link
Member Author

pierDipi commented May 4, 2023

/override ?

@knative-prow
Copy link

knative-prow bot commented May 4, 2023

@pierDipi: /override requires failed status contexts, check run or a prowjob name to operate on.
The following unknown contexts/checkruns were given:

  • ?

Only the following failed contexts/checkruns were expected:

  • EasyCLA
  • build-tests_eventing-istio_main
  • integration-tests_eventing-istio_main
  • style / Golang / Boilerplate Check (go)
  • style / suggester / github_actions
  • style / suggester / shell
  • tide
  • unit-tests_eventing-istio_main

If you are trying to override a checkrun that has a space in it, you must put a double quote on the context.

In response to this:

/override ?

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.

@pierDipi
Copy link
Member Author

pierDipi commented May 4, 2023

/override style / Golang / Boilerplate Check (go)

@knative-prow
Copy link

knative-prow bot commented May 4, 2023

@pierDipi: /override requires failed status contexts, check run or a prowjob name to operate on.
The following unknown contexts/checkruns were given:

  • (go)
  • /
  • Boilerplate
  • Check
  • Golang
  • style

Only the following failed contexts/checkruns were expected:

  • EasyCLA
  • build-tests_eventing-istio_main
  • integration-tests_eventing-istio_main
  • style / Golang / Boilerplate Check (go)
  • style / suggester / github_actions
  • style / suggester / shell
  • tide
  • unit-tests_eventing-istio_main

If you are trying to override a checkrun that has a space in it, you must put a double quote on the context.

In response to this:

/override style / Golang / Boilerplate Check (go)

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.

@pierDipi
Copy link
Member Author

pierDipi commented May 4, 2023

/override style / suggester / shell

@knative-prow
Copy link

knative-prow bot commented May 4, 2023

@pierDipi: /override requires failed status contexts, check run or a prowjob name to operate on.
The following unknown contexts/checkruns were given:

  • /
  • shell
  • style
  • suggester

Only the following failed contexts/checkruns were expected:

  • EasyCLA
  • build-tests_eventing-istio_main
  • integration-tests_eventing-istio_main
  • style / Golang / Boilerplate Check (go)
  • style / suggester / github_actions
  • style / suggester / shell
  • tide
  • unit-tests_eventing-istio_main

If you are trying to override a checkrun that has a space in it, you must put a double quote on the context.

In response to this:

/override style / suggester / shell

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.

@pierDipi
Copy link
Member Author

pierDipi commented May 4, 2023

/override style

@knative-prow
Copy link

knative-prow bot commented May 4, 2023

@pierDipi: /override requires failed status contexts, check run or a prowjob name to operate on.
The following unknown contexts/checkruns were given:

  • style

Only the following failed contexts/checkruns were expected:

  • EasyCLA
  • build-tests_eventing-istio_main
  • integration-tests_eventing-istio_main
  • style / Golang / Boilerplate Check (go)
  • style / suggester / github_actions
  • style / suggester / shell
  • tide
  • unit-tests_eventing-istio_main

If you are trying to override a checkrun that has a space in it, you must put a double quote on the context.

In response to this:

/override style

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.

@pierDipi
Copy link
Member Author

pierDipi commented May 4, 2023

/override shell

@knative-prow
Copy link

knative-prow bot commented May 4, 2023

@pierDipi: /override requires failed status contexts, check run or a prowjob name to operate on.
The following unknown contexts/checkruns were given:

  • shell

Only the following failed contexts/checkruns were expected:

  • EasyCLA
  • build-tests_eventing-istio_main
  • integration-tests_eventing-istio_main
  • style / Golang / Boilerplate Check (go)
  • style / suggester / github_actions
  • style / suggester / shell
  • tide
  • unit-tests_eventing-istio_main

If you are trying to override a checkrun that has a space in it, you must put a double quote on the context.

In response to this:

/override shell

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.

@pierDipi
Copy link
Member Author

pierDipi commented May 4, 2023

/override "style / suggester / shell"

@knative-prow
Copy link

knative-prow bot commented May 4, 2023

@pierDipi: Overrode contexts on behalf of pierDipi: style / suggester / shell

In response to this:

/override "style / suggester / shell"

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.

@pierDipi
Copy link
Member Author

pierDipi commented May 4, 2023

/override "style / Golang / Boilerplate Check (go)"

@knative-prow
Copy link

knative-prow bot commented May 4, 2023

@pierDipi: Overrode contexts on behalf of pierDipi: style / Golang / Boilerplate Check (go)

In response to this:

/override "style / Golang / Boilerplate Check (go)"

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.

@knative-prow knative-prow bot merged commit ac9fa53 into knative-extensions:main May 4, 2023
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>
creydr pushed a commit to creydr/knative-eventing-istio that referenced this pull request Aug 2, 2023
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. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants