chore: refine the settings of the manager#9587
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.
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".
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.