Add EventTransform Jsonata reconciler and CRD#8456
Add EventTransform Jsonata reconciler and CRD#8456knative-prow[bot] merged 7 commits intoknative:mainfrom
Conversation
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8456 +/- ##
==========================================
- Coverage 63.91% 63.00% -0.91%
==========================================
Files 391 394 +3
Lines 23543 23882 +339
==========================================
Hits 15048 15048
- Misses 7691 8030 +339
Partials 804 804 ☔ View full report in Codecov by Sentry. |
| registry.Register(&flowsv1.Sequence{}) | ||
| registry.Register(&flowsv1.Parallel{}) | ||
| registry.Register(&eventingv1alpha1.EventPolicy{}) | ||
| registry.Register(&eventingv1alpha1.EventTransform{}) |
There was a problem hiding this comment.
was this used to generate the actual CRD?
Asking because other new CRDs (e.g. JobSink or Integration source/sink are missing.
(I can add them in a separate PR)
There was a problem hiding this comment.
Partially, this is to generate the schema part of the CRD
There was a problem hiding this comment.
but it's only for bootstrapping it to give an head start
go run ./cmd/schema/ dump EventTransform
| sourceslisters "knative.dev/eventing/pkg/client/listers/sources/v1" | ||
| ) | ||
|
|
||
| type Reconciler struct { |
There was a problem hiding this comment.
nit: we could include a _test.go file. But can be done on separate PR
There was a problem hiding this comment.
Yes, I'll follow up with unit and e2e tests
| @@ -0,0 +1,176 @@ | |||
| package eventtransform | |||
There was a problem hiding this comment.
nit: we could license header? and perhaps stash that file in a separate resources folder? Like others do?
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>
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test reconciler-tests |
* Add EventTransform Jsonata reconciler Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add CRD Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add reconciler to controller binary Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add permissions Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add selector to eventing filtered factory Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add License header Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add symlink Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> --------- Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
* Add EventTransform API types (knative#8447) * Add EventTransform API Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Codegen Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Rename TransformList -> EventTransformList Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Fix lint errors Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> --------- Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add EventTransform Jsonata reconciler and CRD (knative#8456) * Add EventTransform Jsonata reconciler Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add CRD Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add reconciler to controller binary Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add permissions Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add selector to eventing filtered factory Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add License header Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Add symlink Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> --------- Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * EventTransform: Reconcile address and service (knative#8458) - Set address only once endpoints are available - Add debug logging - Fix semantic comparisons to avoid loops Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * EventTransform: Support transforming response from Sink (knative#8469) This allows: - propagating the response from Sink - discarding the response from Sink - transforming the response from Sink Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * chore: Adding missing sinks and sources to schema file (knative#8460) :lipstick: Adding missing sinks and sources to schema file Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> * Run make generate-release Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> --------- Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Related to:
Proposed Changes
Pre-review Checklist
Release Note
Docs