As raised here, our charm units will remove the resources deployed on any unit removal, not just on the last unit removal. This will be an issue if anyone scales the application.
When implementing this fix, we should add some tests that ensure the charm actually works if scaled up. We do have leader guards, but I don't think we've actually tested this to make sure we didn't miss something.
Bug Description
As raised here, our charm units will remove the resources deployed on any unit removal, not just on the last unit removal. This will be an issue if anyone scales the application.
When implementing this fix, we should add some tests that ensure the charm actually works if scaled up. We do have leader guards, but I don't think we've actually tested this to make sure we didn't miss something.
To Reproduce
-
Environment
-
Relevant log output
Additional context
No response