django-qsessions icon indicating copy to clipboard operation
django-qsessions copied to clipboard

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

Open hbagdi opened this issue 3 years ago • 0 comments

_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.

hbagdi avatar Apr 23 '21 04:04 hbagdi