-
Notifications
You must be signed in to change notification settings - Fork 597
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
Uninstalled Event Source results in "Failed to list *v1.Source: the server could not find the requested resource" #4611
Comments
I think the problem is that with genReconciler the ReconcileKind never gets called with deleted resources. You probably need to manually add a handler, kind of like we do in IMC here so that you can call the cleanup: |
@vaikas thanks for taking a look at this issue. I did attempt to implement the solution you suggested (similar to IMC) in the other sibling issue for this ... in eventing-autoscaler-keda: https://github.com/knative-sandbox/eventing-autoscaler-keda/pull/54/files#diff-9f218382398a14e88cf9424a19a54422d028e7df5a80e6d107b8d33052897859R64-R68 and unfortunately, the deleteFunc in CRD pkg doesn't get called and instead the specific SOURCE's eventhandler delete function gets called that doesn't have information of all the dynamic controllers created. So it doesn't help. This also happens here in eventing code. I tried it out for eventing this evening. So I'm blocked with both issues here until I can come up with another solution. Will appreciate any advice you have for me... |
This issue is stale because it has been open for 90 days with no |
/reopen |
@aavarghese: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This issue is stale because it has been open for 90 days with no |
/reopen |
@lionelvillard: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This issue is stale because it has been open for 90 days with no |
/reopen |
@pierDipi: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Describe the bug
If we create a new Event Source, ie. we install Redis Stream Sources, the parent controller successfully creates a new dynamic controller for this particular Source. But if we uninstall this Source, the created dynamic controller is not properly destroyed. This results in error messages in the log:
This code to delete controller is never called:
eventing/pkg/reconciler/source/crd/crd.go
Lines 69 to 76 in f4482c5
Expected behavior
Error line below isn't repeated over and over and the appropriate controllers are deleted.
To Reproduce
Install knative-eventing
Install any eventing source
For example, RedisStream
Delete the eventing source
For example, RedisStream
Knative release version
0.19.0
Additional context
Same problem also in eventing-autoscaler-keda (same code)
knative-extensions/eventing-autoscaler-keda#2
The text was updated successfully, but these errors were encountered: