-
Notifications
You must be signed in to change notification settings - Fork 239
chore: refine the settings of the manager #9587
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
Conversation
Auto Cherry-pick Instructions
|
/pick release-1.0 |
c316595
to
314221f
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9587 +/- ##
==========================================
+ Coverage 59.83% 59.95% +0.11%
==========================================
Files 518 518
Lines 56345 56359 +14
==========================================
+ Hits 33712 33788 +76
+ Misses 19619 19561 -58
+ Partials 3014 3010 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
cmd/manager/main.go
Outdated
flag.String(leaderElectIDFlagKey.String(), "001c317f", | ||
"The leader election ID prefix for controller manager. "+ | ||
"This ID must be unique to controller manager.") | ||
flag.Duration(leaderElectLeaseDurationFlagKey.String(), time.Duration(15), |
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.
Suggest using flag.Int()
instead. For flag.Duration()
, it allows users to set a duration like "1m20s", and "15" actually means 15 nanoseconds. Using flag.Int()
is more idiomatic, if its default unit is "seconds".
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.
Done.
314221f
to
3fda809
Compare
3fda809
to
32d7d80
Compare
32d7d80
to
780a27c
Compare
/approve |
/cherry-pick release-1.0 |
🤖 says: cherry pick action finished successfully 🎉! |
(cherry picked from commit b63d94b)
No description provided.