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

egressgw: switch unit tests to reconciliationEventsCount #27881

Merged
merged 2 commits into from
Sep 4, 2023

Conversation

jibi
Copy link
Member

@jibi jibi commented Sep 1, 2023

instead of just retrying to assert that egressgw bpf entries and IP
rules/routes are consistent with the expected state, use the newly
introduced reconciliationEventsCount manager's variable to ensure that
the manager has actually gone through a reconciliation round

@jibi jibi added release-note/ci This PR makes changes to the CI. feature/egress-gateway Impacts the egress IP gateway feature. labels Sep 1, 2023
@jibi jibi force-pushed the pr/jibi/egressgw-reconciliation-counter branch from 8007ff0 to fd5b0b4 Compare September 1, 2023 09:39
this commit introduces a new manager variable, reconciliationEventsCount,
used to track how many reconciliation events have occoured.

This will be used in a subsequent commit to improve unit tests, ensuring
assertions only happen after a reconciliation has actually been
performed.

Signed-off-by: Gilberto Bertin <jibi@cilium.io>
@jibi jibi force-pushed the pr/jibi/egressgw-reconciliation-counter branch from fd5b0b4 to 172ffee Compare September 1, 2023 09:41
instead of just retrying to assert that egressgw bpf entries and IP
rules/routes are consistent with the expected state, use the newly
introduced reconciliationEventsCount manager's variable to ensure that
the manager has actually gone through a reconciliation round

Signed-off-by: Gilberto Bertin <jibi@cilium.io>
@jibi jibi force-pushed the pr/jibi/egressgw-reconciliation-counter branch from 172ffee to 0e8f243 Compare September 1, 2023 09:56
@jibi
Copy link
Member Author

jibi commented Sep 1, 2023

/test

@jibi jibi marked this pull request as ready for review September 1, 2023 10:25
@jibi jibi requested a review from a team as a code owner September 1, 2023 10:25
Copy link
Member

@jschwinger233 jschwinger233 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aanm aanm merged commit e66bbda into main Sep 4, 2023
202 checks passed
@aanm aanm deleted the pr/jibi/egressgw-reconciliation-counter branch September 4, 2023 07:11
@jibi jibi added the needs-backport/1.14 This PR / issue needs backporting to the v1.14 branch label Sep 6, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from main in 1.14.2 Sep 6, 2023
@jibi jibi removed the needs-backport/1.14 This PR / issue needs backporting to the v1.14 branch label Sep 7, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed this from Needs backport from main in 1.14.2 Sep 7, 2023
@jibi jibi added backport/author The backport will be carried out by the author of the PR. needs-backport/1.14 This PR / issue needs backporting to the v1.14 branch and removed backport/author The backport will be carried out by the author of the PR. needs-backport/1.14 This PR / issue needs backporting to the v1.14 branch labels Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/egress-gateway Impacts the egress IP gateway feature. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants