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

Implement Trigger.Spec.DeliverySpec #612

Merged
merged 7 commits into from
Feb 10, 2021

Conversation

pierDipi
Copy link
Member

@pierDipi pierDipi commented Feb 9, 2021

Fixes #578

I'd wait for an E2E test from the eventing repository.

Proposed Changes

  • Implement Trigger.Spec.DeliverySpec

Release Note

:gift: Add support for Trigger.Spec.DeliverySpec

/kind enhancement

Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
@knative-prow-robot knative-prow-robot added area/data-plane approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 9, 2021
@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Feb 9, 2021
@knative-prow-robot knative-prow-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Feb 9, 2021
@codecov
Copy link

codecov bot commented Feb 9, 2021

Codecov Report

Merging #612 (1ce0449) into master (1b4152a) will decrease coverage by 0.15%.
The diff coverage is 69.44%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #612      +/-   ##
============================================
- Coverage     72.40%   72.24%   -0.16%     
  Complexity      396      396              
============================================
  Files            72       72              
  Lines          2674     2684      +10     
  Branches        115      116       +1     
============================================
+ Hits           1936     1939       +3     
- Misses          596      599       +3     
- Partials        142      146       +4     
Flag Coverage Δ Complexity Δ
java-unittests 79.45% <28.57%> (-0.17%) 0.00 <2.00> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
.../core/reconciler/impl/ResourcesReconcilerImpl.java 93.15% <0.00%> (-0.65%) 58.00 <0.00> (ø)
...r/dispatcher/http/HttpConsumerVerticleFactory.java 85.13% <33.33%> (-2.37%) 26.00 <2.00> (ø)
control-plane/pkg/reconciler/trigger/trigger.go 70.96% <50.00%> (-0.70%) 0.00 <0.00> (ø)
control-plane/pkg/core/config/utils.go 74.46% <77.77%> (+2.05%) 0.00 <0.00> (ø)
control-plane/pkg/reconciler/broker/broker.go 78.07% <100.00%> (-0.64%) 0.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b4152a...a9a6a18. Read the comment docs.

@knative-metrics-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-knative-sandbox-eventing-kafka-broker-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
control-plane/pkg/core/config/utils.go 89.5% 88.9% -0.6
control-plane/pkg/reconciler/broker/broker.go 87.9% 87.3% -0.6
control-plane/pkg/reconciler/trigger/trigger.go 85.6% 85.1% -0.4

Copy link
Contributor

@slinkydeveloper slinkydeveloper left a comment

Choose a reason for hiding this comment

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

Not much of a difference for us, unhold at your will

@slinkydeveloper
Copy link
Contributor

/hold

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 9, 2021
@pierDipi
Copy link
Member Author

pierDipi commented Feb 9, 2021

It needs lgtm tho.
/unhold

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 9, 2021
@slinkydeveloper
Copy link
Contributor

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 10, 2021
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pierDipi, slinkydeveloper

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:
  • OWNERS [pierDipi,slinkydeveloper]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@pierDipi
Copy link
Member Author

/test pull-knative-sandbox-eventing-kafka-broker-integration-tests

@pierDipi
Copy link
Member Author

pierDipi commented Feb 10, 2021

A PR in eventing broke a test knative/eventing#4843

@pierDipi
Copy link
Member Author

This should fix it #627

@pierDipi
Copy link
Member Author

/test pull-knative-sandbox-eventing-kafka-broker-integration-tests

@slinkydeveloper
Copy link
Contributor

/retest

@knative-prow-robot knative-prow-robot merged commit 33fc401 into knative-extensions:master Feb 10, 2021
pierDipi added a commit to pierDipi/eventing-kafka-broker that referenced this pull request Feb 27, 2021
* Add EgressConfig to Egress

Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>

* Generate protobuf code

Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>

* Controller saves Trigger.Spec.Delivery in contract

Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>

* Use EgressConfig of Egress and fallback to Resource.EgressConfig

Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>

* Improve delivery parsing error messages

Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>

* Use matav1 as import name of apimachinery/pkg/apis/meta/v1

Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>

* Change error messages in broker tests

Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
@pierDipi pierDipi deleted the KNATIVE-578 branch April 14, 2021 21:24
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 area/data-plane cla: yes Indicates the PR's author has signed the CLA. kind/enhancement lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Trigger.Spec.DeliverySpec
4 participants