Skip to content

Remove any existing finalizer #4512

@vaikas

Description

@vaikas

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)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/channelskind/bugCategorizes 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.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions