ConsumerGroup is not cleaned up after KafkaSource deletion
a7i opened this issue · 2 comments
a7i commented
Describe the bug
Deletion of KafkaSource
does not clean up the ConsumerGroup
. Even t hough KafkaSource
is the ownerRef for ConsumerGroup
i.e.
apiVersion: internal.kafka.eventing.knative.dev/v1alpha1
kind: ConsumerGroup
metadata:
ownerReferences:
- apiVersion: sources.knative.dev/v1beta1
blockOwnerDeletion: true
controller: true
kind: KafkaSource
name: ....
uid: ...
This is because the ConsumerGroup
finalizer is blocking it.
Expected behavior
If a KafkaSource
is deleted, then the ConsumerGroup
also needs to be deleted.
To Reproduce
- Create a
KafkaSource
- Observe that a
ConsumerGroup
is created - Delete the
KafkaSource
- Observe that the
ConsumerGroup
is not deleted- Also
kubectl delete consumergroup ...
does not work and requires removing the finalizers
- Also
Knative release version
v1.6.0
Additional context
Add any other context about the problem here such as proposed priority
aavarghese commented
Also, I think you meant to discuss this in the https://github.com/knative-sandbox/eventing-kafka-broker repo (new version). Glad issue has been resolved.