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

Removes using callbacks in webhooks. Relies on genericCRD interface instead to receive the defaulting and validating calls. #1018

Merged
merged 4 commits into from
Dec 22, 2022

Conversation

gab-satchi
Copy link
Contributor

Changes

  • πŸ—‘οΈ Removes using callbacks in webhooks
  • πŸ—‘οΈ removes extra conversion between unstructured objects to the eventing v1 types
  • πŸ› Fixes an issue where an invalid Trigger can be created if its Broker was missing.
πŸ› Fixes an issue where an invalid Trigger can be created if its Broker was missing.

/kind cleanup

@knative-prow knative-prow bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 8, 2022
original *eventingv1.Broker
want *apis.FieldError
}{{
name: "not my broker class",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Each of these test cases are covered in the test above. This was testing the wrapper ValidateBroker function which is now fully removed.

@codecov
Copy link

codecov bot commented Dec 9, 2022

Codecov Report

Merging #1018 (c20f835) into main (7ef9702) will decrease coverage by 0.12%.
The diff coverage is 28.57%.

❗ Current head c20f835 differs from pull request most recent head b28c34d. Consider uploading reports for the commit b28c34d to get more accurate results

@@            Coverage Diff             @@
##             main    #1018      +/-   ##
==========================================
- Coverage   73.74%   73.61%   -0.13%     
==========================================
  Files          44       44              
  Lines        3302     3332      +30     
==========================================
+ Hits         2435     2453      +18     
- Misses        777      790      +13     
+ Partials       90       89       -1     
Impacted Files Coverage Ξ”
pkg/apis/eventing/v1alpha1/rabbitmq_types.go 100.00% <ΓΈ> (ΓΈ)
pkg/apis/eventing/v1alpha1/rabbitmq_validation.go 68.18% <ΓΈ> (+19.79%) ⬆️
pkg/apis/eventing/v1alpha1/broker_validation.go 74.69% <8.33%> (-9.64%) ⬇️
pkg/apis/eventing/v1alpha1/trigger_validation.go 62.50% <39.13%> (-10.42%) ⬇️
pkg/reconciler/trigger/trigger.go 63.47% <0.00%> (-0.54%) ⬇️
pkg/rabbit/queue.go 100.00% <0.00%> (ΓΈ)
pkg/rabbit/exchange.go 100.00% <0.00%> (ΓΈ)
pkg/reconciler/broker/resources/ingress.go 97.94% <0.00%> (+0.04%) ⬆️
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@gabo1208
Copy link
Contributor

Let me know when this is ready @gab-satchi

@gab-satchi
Copy link
Contributor Author

It's ready @gabo1208

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Dec 22, 2022
@knative-prow
Copy link

knative-prow bot commented Dec 22, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gab-satchi, gabo1208

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 [gab-satchi,gabo1208]

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

@knative-prow knative-prow bot merged commit 51db33b into knative-extensions:main Dec 22, 2022
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. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants