-
Notifications
You must be signed in to change notification settings - Fork 110
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
refector: refector node webhook #578
base: main
Are you sure you want to change the base?
Conversation
edcc4f3
to
52da9dc
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #578 +/- ##
==========================================
+ Coverage 55.94% 56.01% +0.07%
==========================================
Files 532 576 +44
Lines 49593 66980 +17387
==========================================
+ Hits 27744 37520 +9776
- Misses 18316 25468 +7152
- Partials 3533 3992 +459
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
52da9dc
to
abf090f
Compare
@caohe @luomingmeng @WangZzzhe /PTAL thanks! |
if err != nil { | ||
klog.Error(err) | ||
} else { | ||
newCapacity = &quantity | ||
klog.V(6).Infof("node %s mem capacity by annotation: %v", node.Name, newCapacity.String()) | ||
klog.V(6).Infof("node %s %s capacity by annotation: %v", node.Name, newCapacity.String(), newCapacity.String()) |
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.
why is newCapacity.String() logged twice?
if err != nil { | ||
klog.Error(err) | ||
} else { | ||
newAllocatable = &quantity | ||
klog.V(6).Infof("node %s mem allocatable by annotation: %v", node.Name, newAllocatable.String()) | ||
klog.V(6).Infof("node %s %s allocatable by annotation: %v", node.Name, newCapacity.String(), newAllocatable.String()) |
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 second param was used to log resource type, and the same is true for line 93
Signed-off-by: googs1025 <[email protected]>
abf090f
to
3c34e87
Compare
sorry for late. can we go next? |
What type of PR is this?
/kind refactor
What this PR does / why we need it:
refactor node webhook
Which issue(s) this PR fixes:
Fix: #577
Special notes for your reviewer: