Open mgencur opened 3 months ago
The TestChannelSubscriptionEventTypeAutoCreate test from https://github.com/knative-extensions/eventing-kafka-broker/pull/4074/files still shows that the eventtype references a KafkaChannel instead of Subscription. See https://prow.knative.dev/view/gs/knative-prow/pr-logs/pull/knative-extensions_eventing-kafka-broker/4074/channel-reconciler-tests-sasl-plain_eventing-kafka-broker_main/1833439756705337344
Reference:Kind = KafkaChannel, Namespace = test-shtvzyyt, Name = channel-rkavthwn
/reopen
@mgencur: Reopened this issue.
@creydr @pierDipi for context, I tried to resolve this here: https://github.com/knative-extensions/eventing-kafka-broker/blob/4cf38f1acae9cfc0b3cc6747d5e1f6140b9c8e1b/control-plane/pkg/reconciler/channel/channel.go#L715
But, I guess it is not being picked up on correctly :(
Describe the bug This is similar to https://github.com/knative/eventing/issues/7699 , just for KafkaChannel instead of InMemoryChannel. There should be an event type that references a Subscription but the only event type that is produced references the KafkaChannel:
I have attached a reproducer `TestChannelSubscriptionEventTypeAutoCreate to https://github.com/knative-extensions/eventing-kafka-broker/pull/4074
Expected behavior It's not clear if there should be two events types created in this case. The expectation is that one event type would reference the Subscription and one would reference KafkaChannel.
To Reproduce Run the reproducer test attached to https://github.com/knative-extensions/eventing-kafka-broker/pull/4074
Knative release version 1.14
Additional context