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

feat: autocreate v1beta3 eventtypes #8276

Merged
merged 3 commits into from
Oct 25, 2024

Conversation

Cali0707
Copy link
Member

Fixes #8098

Proposed Changes

  • Autocreate v1beta3 eventtypes
  • Create v1beta3 test reconciler package
  • Update autocreate handlers to use appropriate v1beta3 interfaces

Pre-review Checklist

  • At least 80% unit test coverage
  • E2E tests for any new behavior
  • Docs PR for any user-facing impact
  • Spec PR for any new API feature
  • Conformance test for any change to the spec

Release Note

EventType autocreate now creates v1beta3 EventTypes

Signed-off-by: Cali0707 <calumramurray@gmail.com>
Signed-off-by: Cali0707 <calumramurray@gmail.com>
… et autocreate handler

Signed-off-by: Cali0707 <calumramurray@gmail.com>
@knative-prow knative-prow bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 24, 2024
@Cali0707
Copy link
Member Author

/cc @matzew @creydr @pierDipi

@knative-prow knative-prow bot requested review from creydr and matzew October 24, 2024 19:54
@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 24, 2024
Copy link

codecov bot commented Oct 24, 2024

Codecov Report

Attention: Patch coverage is 13.10680% with 179 lines in your changes missing coverage. Please review.

Project coverage is 65.08%. Comparing base (291c0a8) to head (fa66fa1).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/reconciler/testing/v1beta3/factory.go 0.00% 73 Missing ⚠️
pkg/reconciler/testing/v1beta3/eventtype.go 0.00% 63 Missing ⚠️
pkg/reconciler/testing/v1beta3/listers.go 29.82% 40 Missing ⚠️
cmd/broker/ingress/main.go 0.00% 2 Missing ⚠️
cmd/broker/filter/main.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8276      +/-   ##
==========================================
- Coverage   65.55%   65.08%   -0.47%     
==========================================
  Files         371      374       +3     
  Lines       22913    23109     +196     
==========================================
+ Hits        15020    15040      +20     
- Misses       7102     7278     +176     
  Partials      791      791              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

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

/test reconciler-tests

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Oct 25, 2024
Copy link

knative-prow bot commented Oct 25, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cali0707, 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

@knative-prow knative-prow bot merged commit 03ba8f4 into knative:main Oct 25, 2024
35 of 36 checks passed
{Name: "source", Value: source.String(), Required: true},
{Name: "schemadata", Value: schema.String(), Required: true},
{Name: "specversion", Value: event.SpecVersion(), Required: true},
{Name: "id", Required: false},
Copy link
Member

Choose a reason for hiding this comment

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

the CE spec does require it...

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah my bad, I'll open a quick follow up :)

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

EventType AutoCreate: set the specversion and id fields on the eventtypes
3 participants