Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-22299

Delete the resources immediately from global hub database without finalizer

XMLWordPrintable

    • GH Train-30
    • Low
    • None

      Value Statement

      Ensure the issue title clearly reflects the value of this user story to the
      intended persona. (Explain the "WHY")

       

      When a resource (e.g., a policy) is deleted in the managed hub without a finalizer, the controller-runtime cannot detect the deletion event and therefore cannot send a deletion bundle. As a result, the policy remains in the global hub's data until the next periodic resync (default: 6 hours), at which point it will be cleaned up.

      Even if we can not catch the object in the reconcile, but we can get the delete event in the predicates 

      ```

      Delete event for local policy acm-config/worker-pid-limit-dev-policy

      ```

      Definition of Done for Engineering Story Owner (Checklist)

       

      • Ensure the bundle deletion event report to global hub database immediately
      • Fix the E2E error failed in recenetly!

       

      Development Complete

      • The code is complete.
      • The compliance is synced into the database
      • Any required downstream Docker file changes are made.

      Tests Automated

      • [ ] Unit/function tests have been automated and incorporated into the
        build.
      • [ ] 100% automated unit/function test coverage for new or changed APIs.

      Secure Design

      • [ ] Security has been assessed and incorporated into your threat model.

      Multidisciplinary Teams Readiness

      • [ ] Create an informative documentation issue using the Customer

      Portal Doc template that you can access from [The Playbook](

      https://docs.google.com/document/d/1YTqpZRH54Bnn4WJ2nZmjaCoiRtqmrc2w6DdQxe_yLZ8/edit#heading=h.9fvyr2rdriby),

      and ensure doc acceptance criteria is met.

      • Call out this sentence as it's own action:
      • [ ] Link the development issue to the doc issue.

      Support Readiness

      • [ ] The must-gather script has been updated.

              rh-ee-myan Meng Yan
              daliu@redhat.com DangPeng Liu
              Hui Chen Hui Chen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: