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: don't configure Kong Gateways with incompatible router flavor #5040

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pmalek
Copy link
Member

@pmalek pmalek commented Oct 31, 2023

What this PR does / why we need it:

Warn users in logs when Kong Gateway with incompatible router is detected and reject the client for that Gateway when sending out the configuration.

Which issue this PR fixes:

Related: #5018

Special notes for your reviewer:

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

@pmalek pmalek added this to the KIC v3.1.0 milestone Oct 31, 2023
@pmalek pmalek self-assigned this Oct 31, 2023
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Attention: 25 lines in your changes are missing coverage. Please review.

Comparison is base (af3d0ae) 75.4% compared to head (d164a57) 75.4%.
Report is 223 commits behind head on main.

Files Patch % Lines
internal/clients/manager.go 50.0% 23 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main   #5040     +/-   ##
=======================================
- Coverage   75.4%   75.4%   -0.1%     
=======================================
  Files        167     167             
  Lines      18906   18942     +36     
=======================================
+ Hits       14273   14287     +14     
- Misses      3803    3823     +20     
- Partials     830     832      +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pmalek pmalek force-pushed the warn-users-when-incompatible-router-flavor-is-detected branch from 51acbbb to d164a57 Compare November 6, 2023 15:03
@@ -22,14 +23,14 @@ func TestValidateRoots(t *testing.T) {
name string
configStr string
expectedDBMode string
expectedRouterFlavor string
expectedRouterFlavor configuration.RouterFlavor
Copy link
Member Author

Choose a reason for hiding this comment

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

Will wait for #5092 to not cause conflicts

@pmalek
Copy link
Member Author

pmalek commented Nov 6, 2023

Waiting for #5092 to reuse the introduced consts for dbmodes.

@pmalek pmalek modified the milestones: KIC v3.1.x, KIC v3.2.x Jan 22, 2024
@pmalek pmalek added the on-hold label Jan 22, 2024
@pmalek
Copy link
Member Author

pmalek commented Jan 22, 2024

On hold for now pending the work on Gateway side (slack thread link in #5018's description): summary #5018 (comment).

@pmalek pmalek modified the milestones: KIC v3.2.x, KIC v3.3.x Jun 4, 2024
@randmonkey randmonkey modified the milestones: KIC v3.3.x, KIC v3.4.x Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants