-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
fix(proxy-cache): changes age param #12812
Conversation
1a869ca
to
b77c205
Compare
Thanks for your contribution @joelact. Your change includes a schema change, which requires additional steps to ensure backwards compatibility with older Kong versions. If you choose to follow-up on those, I'm happy to assist you in doing so. |
Hey @jschmid1. Thanks for taking a look at this. |
Sure @joelact, Your change qualifies as a "rename" of a field. To ensure compatibility to older versions when running Kong in hybrid-mode you have to teach the Kong how to manipulate the plugin config so that older versions still understand it. You can take a look at the compatibility checkers here -> https://github.com/Kong/kong/blob/master/kong/clustering/compat/checkers.lua and for testing check this file -> https://github.com/Kong/kong/blob/master/spec/02-integration/09-hybrid_mode/09-config-compat_spec.lua |
024563e
to
19133ea
Compare
952e55d
to
a95dedb
Compare
Hey @jschmid1! Sorry for the delay in completing the mentioned actions. When possible can you review this again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late reponse @joelact. There is one last thing we need to address. Other than that we're good to go. Thanks for all the effort, really appreciated 👍🏼
kong/plugins/proxy-cache/clustering/compat/response_headers_translation.lua
Show resolved
Hide resolved
cb10ad9
to
bad9bd2
Compare
Looks good, waiting for the CI to turn green. 👍🏼 |
From https://github.com/Kong/kong/actions/runs/9221338444/job/25446686155?pr=12812
You need to add this file to the rockspec. |
c6334f2
to
5bf95fc
Compare
@jschmid1 added file to rockspec. |
The age parameter on the schema was in lower case which caused the header Age to appear only when the kong debug option was enabled. This commit changes the schema parameter from age to Age. Fix Kong#12787
Thanks for your contribution, much appreciated @joelact |
Summary
The age parameter on the schema was in lower case which caused the header Age to appear only when the kong debug option was enabled. This commit changes the schema parameter from age to Age.
Checklist
changelog/unreleased/kong
orskip-changelog
label added on PR if changelog is unnecessary. README.mdIssue reference
Fix #12787