Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Workaround Argo CD cluster deletion reconciliation bug #171

Merged
merged 2 commits into from
Mar 29, 2021

Conversation

jgwest
Copy link
Member

@jgwest jgwest commented Mar 25, 2021

This PR removes the Application finalizer if the cluster destination for that Application is detected to be is invalid (for example, the cluster was removed from Argo CD, or the cluster secret was deleted). This ensures that the Application can be deleted successfully without locking up the Argo CD instance (See the parent issue for details on Argo CD's bad behaviour).

Since the cluster destination does not exist, there are no application resources to clean up, so we are safe to remove the finalizer (but until the upstream bug is fixed in supported Argo CD versions, we need to workaround it here).

Fixes #170

@jgwest jgwest marked this pull request as ready for review March 25, 2021 21:27
@OmerKahani
Copy link
Contributor

Do we need unit tests, or can we really on the E2E tests?

@jgwest
Copy link
Member Author

jgwest commented Mar 26, 2021

Thanks @OmerKahani , I've updated the PR with your requested changes, and add unit tests for the new method. If you can take a look ASAP that would be great, as I'd like to update the RC driver with this change so it can be tested. Thanks 😄 !

@OmerKahani
Copy link
Contributor

Thanks @OmerKahani , I've updated the PR with your requested changes, and add unit tests for the new method. If you can take a look ASAP that would be great, as I'd like to update the RC driver with this change so it can be tested. Thanks 😄 !

Looks great now!

@wtam2018
Copy link
Collaborator

LGTM
We are going to remove the workaround when the parent bug is resolved, right? What will remind us to do that?

@jgwest
Copy link
Member Author

jgwest commented Mar 29, 2021

Thanks @wtam2018 👍 , opened #175 to remind us, and added it to next milestone.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Workaround Argo CD cluster deletion reconciliation bug
3 participants