-
Notifications
You must be signed in to change notification settings - Fork 225
kafka-ch-dispatcher has no ownerref #1188
Comments
/assign |
This will be only solved for the cluster scoped dispatcher. The namespaced dispatcher won't still have an "OwnerRef" because the strategy here is to create the dispatcher in advance with an ownerRef. The namespace dispatchers need to be created later and we there's nothing that can be set as the ownerRef. If it was per channel, instead of per namespace, we would be able to set the CR instance as the owner. Related: #1524 |
Oh boy... Can't create the dispatcher Another approach would be creating the @lionelvillard @slinkydeveloper @vaikas any suggestions? BTW, there are 2 kinds of
This I was only attempting to fix the 1st one's ownerRef by setting it to the I need feedback. |
sounds messy... 🤔 |
Ok maybe it's me, but i didn't properly get what's the problem here. @aliok the dispatcher is brought up by the controller right? In both cases, could the owner ref be just the controller deployment? |
Don't know. Could work I guess. Let me think about that. |
we tried setting the owner ref to be the controller using the downward API without success (problem with the uid if I recall well). |
For reference:
Can't come up with any alternatives to set as the owner. |
My bad... I don't think this is accurate: |
Reworked PR: #1536 |
For the namespaced one, using the ownerref of the channel seems reasonable to me. The only caveat is that do we really want there to be 1:1 mapping between a channel and a dispatcher? |
Won't work if there's more than 1 channel in a namespace.
I think this will be fine now, with the PR: #1536 |
We have more than one channel per namespace. Will this fix my issue? |
@AceHack Are you using the hidden |
I didn't think it was hidden, it's called out here in the docs. And yes we are using that |
thanks @AceHack. Can I ask you a couple more questions:
thanks. |
Currently, we are also using the cluster dispatcher but we could avoid it, it's not absolutely necessary. It's some more works for us to deploy the namespace dispatcher separately but something we could do. |
We have multiple kafka clusters and need the ability to connect to the different ones per namespace |
thanks @AceHack, this is very helpful! |
We actually would like to connect to different ones per topic, but we've been getting by with per namespace. |
No, in the fix PR, only the cluster scope dispatcher is created in advance. For the namespaced ones nothing changed. |
IMO we should have all these information in the CR: cluster, topic, etc |
Describe the bug
kafka-ch-dispatcher gets created as needed but without a ownerref, this causes problems on uninstall of eventing as the kafka-ch-dispatcher deployment never gets cleaned up and is left around as an orphan crash loop forever.
Expected behavior
kafka-ch-dispatcher to get cleaned up on uninstall of knative Kafka channel controller.
To Reproduce
Install knative Kafka channel controller
Create a kafka channel
Delete a Kafka channel
Uninstall knative Kafka channel controller
Knative release version
0.14.1
Related issue
knative/eventing#3035
The text was updated successfully, but these errors were encountered: