-
Task
-
Resolution: Done
-
Major
-
None
-
None
-
False
-
None
-
False
-
No
-
MGDSRVS-336 - Keep Openshift Streams components up-to-date
-
---
-
---
-
-
-
MK - Sprint 232
WHAT
Update the Fleetshard operator so that when a Strimzi cluster operator deployment is deleted, any related Lease resources are also cleaned up
WHY
MGDSTRM-10079 enables the leader election in the Strimzi cluster operator. This means the pods will use a Lease resource to determine which instance is the current leader and is responsible for reconciling clusters.
Until the upstream issue is resolved, deleting the deployment will leave the Lease resource behind. To avoid having extra Lease resources lying around we should clean up the old one when we delete the deployment.
Upstream lease issue: https://github.com/fabric8io/kubernetes-client/issues/4638
HOW
We could potentially do this in the fleetshard operator here: https://github.com/bf2fc6cc711aee1a0c2a/kas-fleetshard/blob/main/operator/src/main/java/org/bf2/operator/managers/StrimziManager.java#L131
DONE
- Verify that when an upgrade occurs and we add a new version of the operator the old Lease is cleaned up.
- relates to
-
MGDSTRM-10079 Increase strimzi operator replicas to 2 & enable strimzi leadership election
- Closed
- mentioned on