Skip to content

Conversation

@nic-chen
Copy link
Member

What this PR does / why we need it:

close #3674

Currently, the item_schema is not set for plugin_config,
which causes the plugin configuration to not be validated when incrementally updated from ETCD (see: https://github.com/apache/apisix/blob/master/apisix/core/config_etcd.lua#L347),
resulting in the default value of the plugin configuration not being set.

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

=== TEST 2: validated plugins configuration via incremental sync
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may add some test cases that written some malformed data to etcd and detect the error log in APISIX.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added. @tokers

@nic-chen nic-chen merged commit 7827d09 into apache:master Mar 1, 2021
@nic-chen nic-chen deleted the fix-checker branch March 1, 2021 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When multiple plugins are configured in plugin_config, only one takes effect

4 participants