-
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
feat(core): Admin GUI integration #11131
Conversation
b20f5f6
to
f31037a
Compare
b507e27
to
e70c56c
Compare
693d1d4
to
0b8251d
Compare
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.
leaving a conditional approval: due to the size of this PR, another pair of eyes are necessary
to merge this in
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.
Mostly LGTM, just need some minor adjustments.
27120bd
to
b5b6fe1
Compare
abe6d15
to
4deab44
Compare
Serve static assets from Canopy project Changes include: * new nginx config template for static file serving * new configuration items under admin_gui_* namespace * bundle canopy assets during the build stage * more CORS support for Admin API * tests and more tests
@@ -1665,6 +1664,20 @@ function Kong.admin_header_filter() | |||
--ctx.KONG_ADMIN_HEADER_FILTER_TIME = ctx.KONG_ADMIN_HEADER_FILTER_ENDED_AT - ctx.KONG_ADMIN_HEADER_FILTER_START | |||
end | |||
|
|||
function Kong.admin_gui_kconfig_content() | |||
local content, err = kong.cache:get( |
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.
I'm a bit concerned about this part that the kconfig.js cache will not get updated after actions like Nginx reload, if the configuration changes before reload happening, it may cause some runtime configuration error. @nekolab Could you please check this part?
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.
Discussed offline with @nekolab and we agreed to merge this in advance to catch up with feature freeze time.
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.
Please note that this needs to be carefully cherry-picked to EE since it contains lots of minor code re-arrangements and refactors.
Serve static assets from Kong Manager OSS
Changes include:
admin_gui_*
namespaceSummary
Checklist
Full changelog
Issue reference
KAG-1940