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

feature: implement --dedup-plugin-configs flag for dump command #341

Open
hbagdi opened this issue Apr 23, 2021 · 0 comments
Open

feature: implement --dedup-plugin-configs flag for dump command #341

hbagdi opened this issue Apr 23, 2021 · 0 comments
Labels
feature New feature or request

Comments

@hbagdi
Copy link
Member

hbagdi commented Apr 23, 2021

_plugin_configs feature of decK allows users to abstract out configuration of plugins that are used repeatedly and then reference them in services/routes/consumers. This helps with de-duplication of configuration code.
While users would like to take advantage of this, most of them cannot because de-duplicating the configuration in the first place is a cumbersome and an error-prone process. The scope here is to automate the process for our users:

How can we do this?
After decK exports Kong's configuration but before it writes the configuration to file, deck analyzes if there are multiple plugins in the configuration that share identical configuration. If so, it will de-duplicate those configuration by putting them under _plugin_configs section and then add a reference to them wherever that configuration is in use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant