Closed antoineco closed 3 years ago
/kind good-first-issue
If you want to pick this issue and you need any help with it, feel free to reach me out in this issue and I can help
@antoineco is this issue still relevant (v0.20 was released several weeks ago)
Yes, if a Broker was created in the v1beta1 API version, the ownerReference will stay on that version, even after upgrading Knative.
We could also decide that v1beta1 -> v1 is not something we want to care about anymore, but we do have some fairly ancient Brokers at TriggerMesh that exhibit this behaviour.
Closing otherwise this will rot.
Describe the bug
I found a few of those
ownerReferences
in Brokers that were created when Knative wasv0.15.0
.Those are invalid and do cause issues with garbage collection, because the
eventing.knative.dev/v1alpha1
API doesn't exist anymore:Expected behavior
Whatever the current "preferred version" is, the Broker reconciler should set that in the
ownerReferences
of all the objects (Channels) it owns, not only the ones created under the current Knative version.To Reproduce
Find a time machine, return to Knative Eventing
v0.15.0
, create a Broker, fast forward tov0.19.0
.Knative release version
v0.19.2
Additional context
You don't actually need a time machine.