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

🐛 refactor rbacfinalizercontroller to fix cluster ns is terminating after delete clustermanager #211

Conversation

zhiweiyin318
Copy link
Member

@zhiweiyin318 zhiweiyin318 commented Jul 4, 2023

Summary

Related issue(s)

when delete clustermanager cr, the registration-controller is deleted so fast to not remove the finalizer on work rolebinding in the cluster namespace. this PR is to refactor rbacfinalizercontroler to watch mcl and ns, remove the finalizer if there is no manifestworks when mcl or ns is deleting.
Fixes #

@openshift-ci openshift-ci bot requested review from ldpliu and skeeey July 4, 2023 09:52
@zhiweiyin318 zhiweiyin318 force-pushed the refactor-rbacfinalizer branch 2 times, most recently from 6fa715e to 99a0675 Compare July 4, 2023 09:59
@codecov
Copy link

codecov bot commented Jul 4, 2023

Codecov Report

Patch coverage: 67.64% and project coverage change: +0.08 🎉

Comparison is base (eb9b7fa) 59.62% compared to head (499e66a) 59.71%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #211      +/-   ##
==========================================
+ Coverage   59.62%   59.71%   +0.08%     
==========================================
  Files         128      128              
  Lines       13262    13243      -19     
==========================================
  Hits         7908     7908              
+ Misses       4613     4595      -18     
+ Partials      741      740       -1     
Flag Coverage Δ
unit 59.71% <67.64%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...gistration/hub/rbacfinalizerdeletion/controller.go 61.94% <67.64%> (+8.91%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@zhiweiyin318 zhiweiyin318 force-pushed the refactor-rbacfinalizer branch from 99a0675 to 7eeca47 Compare July 4, 2023 10:12
@zhiweiyin318 zhiweiyin318 changed the title 🐛 refactor rbacfinalizercontroller to fix cluster ns is terminating aft… 🐛 refactor rbacfinalizercontroller to fix cluster ns is terminating after delete clustermanager Jul 4, 2023
@zhiweiyin318 zhiweiyin318 force-pushed the refactor-rbacfinalizer branch 2 times, most recently from 0df9ef0 to 72c576e Compare July 4, 2023 11:29
…er delete clustermanager

Signed-off-by: Zhiwei Yin <zyin@redhat.com>
@zhiweiyin318 zhiweiyin318 force-pushed the refactor-rbacfinalizer branch from 72c576e to 499e66a Compare July 4, 2023 14:35
@zhiweiyin318
Copy link
Member Author

/assign @qiujian16
/assign @skeeey

@skeeey
Copy link
Member

skeeey commented Jul 5, 2023

/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jul 5, 2023
@qiujian16
Copy link
Member

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 5, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiujian16, skeeey, zhiweiyin318

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-ci openshift-ci bot added the approved label Jul 5, 2023
@openshift-merge-robot openshift-merge-robot merged commit 0adc766 into open-cluster-management-io:main Jul 5, 2023
@zhiweiyin318 zhiweiyin318 deleted the refactor-rbacfinalizer branch July 5, 2023 01:47
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.

4 participants