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(clustering): do not enable kong.sync.v2 when connecting dp is older than cp #14217

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bungle
Copy link
Member

@bungle bungle commented Jan 23, 2025

Summary

There is a compatibility feature in v1 sync. While building compatibility layer for v2 sync (Lua Control Plane), we found that it is making things too complicated. Thus we decided that when DP version is older than CP version, we can just fallback to v1 sync until DP is upgraded to same level and it can utilize the v2 sync again.

This code here hides the CP capability of kong.sync.v2 when older (than the CP) DP connects to it. The DPs can already fallback in that scenario, so this code is just for the control plane.

I don't think this needs a changelog. It is not a fix. It is very tiny too, and the first time we ever need this is when we release 3.11.

KAG-6240

Checklist

@github-actions github-actions bot added core/clustering cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee labels Jan 23, 2025
@bungle bungle force-pushed the feat/clustering-no-incremental-for-older-dp branch from e5d7b7f to 32d93cc Compare January 23, 2025 18:02
@chronolaw chronolaw changed the title chore(clustering): do not enable kong.sync.v2 when connecting dp is older than cp feat(clustering): do not enable kong.sync.v2 when connecting dp is older than cp Jan 23, 2025
@bungle bungle force-pushed the feat/clustering-no-incremental-for-older-dp branch from 32d93cc to acec33e Compare January 24, 2025 14:03
@pull-request-size pull-request-size bot added size/M and removed size/S labels Jan 24, 2025
@bungle bungle force-pushed the feat/clustering-no-incremental-for-older-dp branch 2 times, most recently from 6d233f9 to b64c29e Compare January 24, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee core/clustering size/M skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants