-
Notifications
You must be signed in to change notification settings - Fork 599
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
feat: reconcile eventtype v1beta3 resources #8087
Conversation
Signed-off-by: Calum Murray <[email protected]>
/cc @matzew One thing I was realizing while working on this is that maybe for the "required" id/specversion attributes we should default them, especially in the case of the "id" where we just want to say that it will be there but it doesn't make sense to give it a specific value |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8087 +/- ##
==========================================
+ Coverage 67.80% 67.82% +0.02%
==========================================
Files 367 367
Lines 17373 17411 +38
==========================================
+ Hits 11779 11809 +30
- Misses 4859 4864 +5
- Partials 735 738 +3 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Calum Murray <[email protected]>
type/source are also required. I think we just need to make sure that they are around. Not sure on defaulting. One |
hrm...? |
@matzew I think the problem is that my branch didn't have the fix for the default reference on it, if you try again now it should work, I get:
|
/test reconciler-tests |
also tried w/ the auto-create: apiVersion: eventing.knative.dev/v1beta3
kind: EventType
metadata:
annotations:
eventing.knative.dev/creator: system:serviceaccount:knative-eventing:mt-broker-ingress
eventing.knative.dev/lastModifier: system:serviceaccount:knative-eventing:mt-broker-ingress
creationTimestamp: "2024-07-11T07:50:07Z"
generation: 1
name: et-default-3c4b2767ec442c946530776794ba99cb
namespace: default
ownerReferences:
- apiVersion: eventing.knative.dev/v1
kind: Broker
name: default
uid: 8abe927f-5876-4aac-a004-25d90c37a57f
resourceVersion: "19273"
uid: 5ca13b0b-cd5d-4597-85c5-04a06c1996c7
spec:
attributes:
- name: type
required: true
value: org.apache.matzew.superEvent
- name: source
required: true
value: /some/source
description: Event Type auto-created by controller
reference:
address: http
apiVersion: eventing.knative.dev/v1
kind: Broker
name: default
namespace: default
status:
conditions:
- lastTransitionTime: "2024-07-11T07:50:07Z"
status: "True"
type: Ready
- lastTransitionTime: "2024-07-11T07:50:07Z"
status: "True"
type: ReferenceExists
observedGeneration: 1 |
@Cali0707 for the CE id, specversion etc, we must add extra logic to capture this properly on the spec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, matzew 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 |
Fixes #6754
This lets us reconcile eventtype v1beta3 resources with the updated eventtype v1beta3 logic.
Proposed Changes