-
Notifications
You must be signed in to change notification settings - Fork 94
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 gc controller #229
🐛 refactor gc controller #229
Conversation
8e682c9
to
8fbb20d
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #229 +/- ##
==========================================
+ Coverage 61.15% 61.36% +0.21%
==========================================
Files 129 131 +2
Lines 13661 13782 +121
==========================================
+ Hits 8354 8458 +104
- Misses 4547 4562 +15
- Partials 760 762 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
71b3810
to
8d989d8
Compare
e3eb1e6
to
3bf5e18
Compare
need some more ut for coverage. |
a13309d
to
4f453eb
Compare
4f453eb
to
4030979
Compare
c366cff
to
d8eb6a2
Compare
d26684c
to
53b808d
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qiujian16, 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 |
clusterClient.ClusterV1().ManagedClusters()) | ||
|
||
gcResources := []schema.GroupVersionResource{} | ||
if len(gcResourceList) == 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can we give a default value to GCResourceList
instead of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the gcResourceList is from the flag gc-resource-list
with the default values addon and manifetworks.
func stringToCleanupPriority(value string) cleanupPriority { | ||
priority, err := strconv.Atoi(value) | ||
if err != nil || cleanupPriority(priority) > maxCleanupPriority || | ||
cleanupPriority(priority) < minCleanupPriority { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: may need a warning message here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added.
LGTM only have some nit comments, leave other reviewer to take a look |
b66c246
to
3330a20
Compare
/hold |
fe1118e
to
dc74e8f
Compare
Signed-off-by: Zhiwei Yin <zyin@redhat.com>
dc74e8f
to
e21ae46
Compare
/unhold |
/lgtm |
f003ed3
into
open-cluster-management-io:main
Summary
refactor rbacfinalizerdeletion to gccontroller, and delete work clustrerole after there is no cluster and manifestwork.
Related issue(s)
Fixes #