Skip to content
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

Controller runtime flag sync-period is not working as expected #3264

Closed
oliviassss opened this issue Jun 29, 2023 · 3 comments
Closed

Controller runtime flag sync-period is not working as expected #3264

oliviassss opened this issue Jun 29, 2023 · 3 comments

Comments

@oliviassss
Copy link
Collaborator

Describe the bug
The controller runtime config flag --sync-period is not working as expected, the controller is not reconciling every 1hr as specified by default. Could be a bug.

Steps to reproduce

Expected outcome
A concise description of what you expected to happen.

Environment

  • AWS Load Balancer controller version
  • Kubernetes version
  • Using EKS (yes/no), if so version?

Additional Context:

@oliviassss
Copy link
Collaborator Author

related issues:
#2800
#2515

@oliviassss
Copy link
Collaborator Author

oliviassss commented Jul 7, 2023

The root cause of the issue with the controller not reconciling at the specified interval per --sync-period is due to the eventhandler ignoring the update event. The event handler currently checks for differences in annotation and spec between the old and new ingresses. If there is no difference, the update event is ignored to prevent unnecessary reconciliations that would result in AWS API calls. Therefore, reconciliation is not actually triggered in this situation.

We can utilize the Kubernetes resourceVersion as a fix instead. By checking if the resourceVersion is the same, we can skip the check for differences in annotation and spec between the old and new ingresses. We can incorporate this fix in our upcoming patch release.

Ref:

@oliviassss
Copy link
Collaborator Author

resolve as the fix has been shipped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant