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

feat(konnect): react to gateway clients updates in NodeAgent #3727

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

czeslavo
Copy link
Contributor

@czeslavo czeslavo commented Mar 14, 2023

What this PR does / why we need it:

Currently konnect.NodeAgent runs a loop with a fixed nodes updates period. It makes propagating the changes in Gateways configuration take longer than it could. In this PR, we subscribe to the Gateway clients' changes to reactively update nodes in the Konnect when a change in discovered Gateways is detected.

Additionally, it moves the NodeAgent's tests into a separate test package to make them black-box.

Which issue this PR fixes:

Part of #3501.

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

@czeslavo czeslavo added area/feature New feature or request area/konnect Issues and PRs related to Konnect labels Mar 14, 2023
@czeslavo czeslavo added this to the KIC v2.9.0 milestone Mar 14, 2023
@czeslavo czeslavo self-assigned this Mar 14, 2023
@czeslavo czeslavo force-pushed the reactively-update-konnect-nodes branch from 3da343c to 53f6f1b Compare March 14, 2023 17:38
@czeslavo czeslavo added the ci/run-e2e Trigger e2e test run from PR label Mar 14, 2023
@team-k8s-bot team-k8s-bot removed the ci/run-e2e Trigger e2e test run from PR label Mar 14, 2023
@czeslavo czeslavo force-pushed the reactively-update-konnect-nodes branch from 53f6f1b to b973d15 Compare March 14, 2023 17:43
@Kong Kong deleted a comment from team-k8s-bot Mar 14, 2023
@czeslavo czeslavo added the ci/run-e2e Trigger e2e test run from PR label Mar 14, 2023
@team-k8s-bot
Copy link
Collaborator

E2E (targeted) tests were started at https://github.com/Kong/kubernetes-ingress-controller/actions/runs/4418663939

controller version k8s istio
b973d15 v1.26.0 v1.17.1

@team-k8s-bot team-k8s-bot removed the ci/run-e2e Trigger e2e test run from PR label Mar 14, 2023
@czeslavo czeslavo marked this pull request as ready for review March 14, 2023 18:04
@czeslavo czeslavo requested a review from a team as a code owner March 14, 2023 18:04
@codecov
Copy link

codecov bot commented Mar 14, 2023

Codecov Report

Patch coverage: 48.5% and project coverage change: -0.4 ⚠️

Comparison is base (6a774f6) 73.8% compared to head (b973d15) 73.4%.

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #3727     +/-   ##
=======================================
- Coverage   73.8%   73.4%   -0.4%     
=======================================
  Files        133     133             
  Lines      15824   15843     +19     
=======================================
- Hits       11679   11644     -35     
- Misses      3395    3436     +41     
- Partials     750     763     +13     
Impacted Files Coverage Δ
internal/manager/run.go 39.3% <0.0%> (-0.2%) ⬇️
internal/konnect/node_agent.go 57.1% <50.0%> (-1.0%) ⬇️

... and 8 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@czeslavo czeslavo merged commit a932fc9 into main Mar 15, 2023
@czeslavo czeslavo deleted the reactively-update-konnect-nodes branch March 15, 2023 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/feature New feature or request area/konnect Issues and PRs related to Konnect size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants