Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove global hub finalizer from local resources and managedcluster. #365

Merged
merged 5 commits into from
Mar 29, 2023

Conversation

yanmxa
Copy link
Member

@yanmxa yanmxa commented Mar 28, 2023

refs: https://issues.redhat.com/secure/RapidBoard.jspa?rapidView=16808&quickFilter=105908

  1. We used the finalizer to delete obj from the bundles before, and now we have to depend on the not found error to remove the bundle obj so that can be deleted from the database.
  2. Since there is no UID for the deleted obj, I have to add a new Namespacedname to the bundle object for retrieval.
    refs: https://issues.redhat.com/browse/ACM-4597
    fixed: Remove the global hub finalizer from managed cluster when deleting the MGH CR #320

@yanmxa
Copy link
Member Author

yanmxa commented Mar 28, 2023

/retest

@yanmxa
Copy link
Member Author

yanmxa commented Mar 28, 2023

/test sonarcloud

@openshift-ci openshift-ci bot removed the approved label Mar 28, 2023
@yanmxa yanmxa changed the title only keep finalizer for the global resource remove global hub finalizer from local resources and managedcluster. Mar 28, 2023
Signed-off-by: myan <myan@redhat.com>
Signed-off-by: myan <myan@redhat.com>
Signed-off-by: myan <myan@redhat.com>
Signed-off-by: myan <myan@redhat.com>
Signed-off-by: myan <myan@redhat.com>
@sonarcloud
Copy link

sonarcloud bot commented Mar 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

87.2% 87.2% Coverage
0.0% 0.0% Duplication

@yanmxa
Copy link
Member Author

yanmxa commented Mar 28, 2023

/cc @clyang82 @morvencao

Copy link
Contributor

@clyang82 clyang82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@openshift-ci
Copy link

openshift-ci bot commented Mar 29, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: clyang82, yanmxa

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 95fba9b into stolostron:main Mar 29, 2023
2 checks passed
@yanmxa yanmxa deleted the br_fix_finalizer branch March 30, 2023 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove the global hub finalizer from managed cluster when deleting the MGH CR
3 participants