-
Notifications
You must be signed in to change notification settings - Fork 596
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
fix: add back the --sync-period flag #1506
Conversation
Codecov Report
@@ Coverage Diff @@
## next #1506 +/- ##
==========================================
+ Coverage 51.46% 51.65% +0.18%
==========================================
Files 91 91
Lines 6299 6300 +1
==========================================
+ Hits 3242 3254 +12
+ Misses 2764 2754 -10
+ Partials 293 292 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Need function/code use the new configuration ControllerOpts.SyncPeriod
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.
Per kubernetes-sigs/controller-runtime#521 we may want to revert to the default. The original was probably arbitrary--no way to know for sure, as it was there from the start and presumably just copied from the NGINX controller settings. However, they've since disabled it entirely kubernetes/ingress-nginx#2634
It looks like this was a workaround for client-go issues that are no longer present, and shorter times may cause issues. However, we also have no known reports of issues, so 🤷
Good find on that issue, I'll change the default. |
This patch adds the --sync-period flag back and delivers the provided time duration to controller runtime, which now in v2 handles the relevant client-go configuration on our behalf (whereas in v1 we used it directly). We now use the default value of 48 hours instead of the value we previously used in v1 of 10 minutes, as per the improvements and context relevant to the setting which make relying on it no longer necessary. See also: kubernetes-sigs/controller-runtime#521
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.
one more minor request for the note of the configuration item
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.
thanks for fixing the bug.
What this PR does / why we need it:
This patch adds the
--sync-period
flag back and deliversthe provided time duration to controller runtime, which
now in v2 handles the relevant client-go configuration on
our behalf (whereas in v1 we used it directly).
This intentionally uses the same settings that V1 established
(instead of the defaults provided by
controller-runtime
) to avoidchange where we don't otherwise have any data influencing us
to pick a new setting.
More context can be seen in this relevant comment.
Which issue this PR fixes
Fixes #1309