Uploaded image for project: 'Managed Service - Streams'
  1. Managed Service - Streams
  2. MGDSTRM-10325

Update Fleetshard operator to remove old Lease resources

XMLWordPrintable

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

              rh-ee-robeyoun Robert Young
              kstanley@redhat.com Kate Stanley
              Kafka Integrations
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: