canonical / istio-beacon-k8s-operator

https://charmhub.io/istio-beacon-k8s
Apache License 2.0
0 stars 0 forks source link

Correctly handle unit removal when n_units>1 #21

Open ca-scribner opened 3 weeks ago

ca-scribner commented 3 weeks ago

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