-
Notifications
You must be signed in to change notification settings - Fork 630
Remove any existing finalizer #4512
Copy link
Copy link
Closed
Labels
area/channelskind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone
Metadata
Metadata
Assignees
Labels
area/channelskind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Describe the bug
Prior to #4511 IMC would have finalizer. If this gets upgraded, then the IMC will not get removed. So, we should remove all the existing finalizers.
Expected behavior
Existing IMC after an upgrade to .20 will get properly deleted.
To Reproduce
Steps to reproduce the behavior.
Knative release version
0.20
Additional context
In 0.19, IMC dispatcher would set the finalizer so it would get removed. in #4511 we just deal with this in ReconcileKind, and hence after upgrading to this behaviour, any existing InMemoryChannels will have Finalizer set, but nothing that will clean it up. So, we should probably just remove those always in the Controller in case they are there. Need to test that they will be properly respected with genreconciler (nothing says they won't, but just need to verify this (for example, if it doesn't allow adding/removing additional finalizers)).