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

Eventtype defaults to a "default" broker #6754

Closed
matzew opened this issue Feb 15, 2023 · 14 comments · Fixed by #8087
Closed

Eventtype defaults to a "default" broker #6754

matzew opened this issue Feb 15, 2023 · 14 comments · Fixed by #8087
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. triage/accepted Issues which should be fixed (post-triage)

Comments

@matzew
Copy link
Member

matzew commented Feb 15, 2023

Describe the bug

The EventType API defaults to a default broker, when not set:
https://github.com/knative/eventing/blob/main/pkg/apis/eventing/v1beta1/eventtype_defaults.go#L27

This is wrong, since it does assume there is an existing broker, called default. This is a poor assumption.

this does relate to #2750 and the tight coupling of EventType API and the brokers.

@matzew matzew added the kind/bug Categorizes issue or PR as related to a bug. label Feb 15, 2023
@matzew
Copy link
Member Author

matzew commented Apr 14, 2023

Related: #2750

@github-actions
Copy link

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 14, 2023
@pierDipi
Copy link
Member

@matzew still relevant?

@github-actions github-actions bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 15, 2023
@github-actions
Copy link

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 14, 2023
@pierDipi
Copy link
Member

/remove-lifecycle stale

@knative-prow knative-prow bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 16, 2023
@pierDipi
Copy link
Member

/triage accepted

@knative-prow knative-prow bot added the triage/accepted Issues which should be fixed (post-triage) label Oct 16, 2023
@pierDipi
Copy link
Member

pierDipi commented Jan 4, 2024

This's been worked in combination with #7264

@Cali0707 Cali0707 linked a pull request Jan 5, 2024 that will close this issue
5 tasks
@pierDipi
Copy link
Member

For this issue, we need to remove the logic that defaults to broker named "default" in all EventType versions.

@pierDipi pierDipi moved this to 🔖 Ready in Event Discovery Jan 26, 2024
@pierDipi
Copy link
Member

@Cali0707 is this done?

@Cali0707
Copy link
Member

@pierDipi with v1beta2 being stored now, I think so, but I would like to check & maybe add a test to verify. Thanks for the ping here!

@matzew
Copy link
Member Author

matzew commented Jun 25, 2024

Just tested this:

k get eventtypes.eventing.knative.dev 
NAME                                  TYPE                             SOURCE                                SCHEMA   REFERENCE NAME   REFERENCE KIND   DESCRIPTION   READY   REASON
dev.knative.source.github.push-v1b1   dev.knative.source.github.push   https://github.com/knative/eventing            default          Broker                                 
dev.knative.source.github.push-v1b2   dev.knative.source.github.push   https://github.com/knative/eventing                                                                    

both brokers are having NO reference

@matzew
Copy link
Member Author

matzew commented Jun 25, 2024

@Cali0707 we have some API tests for that, I did tweak them a bit, as their naming was a bit confusing, given the old behavior, see here: #8030

@matzew
Copy link
Member Author

matzew commented Jul 11, 2024

@matzew
Copy link
Member Author

matzew commented Jul 11, 2024

/done

@matzew matzew closed this as completed Jul 11, 2024
@github-project-automation github-project-automation bot moved this from 🔖 Ready to ✅ Done in Event Discovery Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. triage/accepted Issues which should be fixed (post-triage)
Projects
Status: Done
3 participants