-
Notifications
You must be signed in to change notification settings - Fork 430
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
Make all reconcile timeouts configurable #4406
Make all reconcile timeouts configurable #4406
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #4406 +/- ##
==========================================
+ Coverage 61.91% 61.97% +0.06%
==========================================
Files 188 188
Lines 18725 18761 +36
==========================================
+ Hits 11593 11627 +34
- Misses 6494 6496 +2
Partials 638 638 ☔ View full report in Codecov by Sentry. |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
35ab5eb
to
31e9453
Compare
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.
31e9453
to
b1eb1fd
Compare
@@ -27,8 +27,6 @@ const ( | |||
DefaultMappingTimeout = 60 * time.Second | |||
// DefaultAzureServiceReconcileTimeout is the default timeout for an Azure service reconcile. | |||
DefaultAzureServiceReconcileTimeout = 12 * time.Second | |||
// DefaultAKSServiceReconcileTimeout is the default timeout for an AKS service reconcile. | |||
DefaultAKSServiceReconcileTimeout = 30 * time.Second |
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.
this was unused since AKS moved to ASO
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.
/lgtm
@@ -75,6 +75,9 @@ func (s *Service) Reconcile(ctx context.Context) error { | |||
ctx, _, done := tele.StartSpanWithLogger(ctx, "publicips.Service.Reconcile") | |||
defer done() | |||
|
|||
ctx, cancel := context.WithTimeout(ctx, s.Scope.DefaultedAzureServiceReconcileTimeout()) |
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.
Publicips didn't have an explicit timeout before 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.
correct, it must have been forgotten in the async refactor
LGTM label has been added. Git tree hash: 9dc083a5ba3483652afe590f5e897e2097394269
|
/hold for squash |
/retest |
61cdafc
to
04a7561
Compare
squashed /hold cancel |
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.
/lgtm
LGTM label has been added. Git tree hash: dbc2fd9277efcd14f8d4e5cb4e7020ab11d05ac1
|
/lgtm |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mboersma 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 |
What type of PR is this?
What this PR does / why we need it: Makes all reconciler timeouts configurable via controller flags. In some environments, network latencies can be higher which causes transient failures due to context deadline exceeded errors. This change enables users to modify the default values in case the default values are not optimal for their use case.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #4276
Special notes for your reviewer:
TODOs:
Release note: