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(dataplane) include licenses with fallback #6048

Merged
merged 1 commit into from
May 17, 2024
Merged

Conversation

rainest
Copy link
Contributor

@rainest rainest commented May 17, 2024

What this PR does / why we need it:

Include licenses (and Vaults) when sending fallback configuration.

Which issue this PR fixes:

Fix #5447

Special notes for your reviewer:

License handling was left as an open question in the original criteria. I chose to always populate the current license from the license getter, which will (sort of) modify the last good config. I've left TODO comments explaining the rationale for doing that over attempting to pull the license from the original config struct.

Will need to either strip (or at least shorten) those if reviewer agrees with the rationale or change stuff if we actually want to use another approach.

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

@rainest rainest requested a review from a team as a code owner May 17, 2024 00:11
When sending fallback last good configuration, include a license if
available from a license source. The provided license is always the
latest available license, even if a license was previously included in
the last configuration.

Move the license getter interface to the license package.

Add a missing Vault handler to the Kong raw state converter.

Update Kong raw state converter test to confirm all fields not specially
exempted are handled by the converter.
@rainest rainest merged commit bcdd40a into main May 17, 2024
36 checks passed
@rainest rainest deleted the feat/license-lastvalid branch May 17, 2024 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Last valid config (KongRawStateToKongState) doesn't support Licenses and Vault fields
2 participants