You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but plugin metadata don't have a id field in our admin api, so when apisix startup with a exist plugin metadata, the checker will be triggered in config_etcd:load_full_data
Current Behavior
Part 1
We created an etcd client to handle plugin metadata in:
apisix/apisix/plugin.lua
Lines 816 to 821 in 64b81c4
in
check_plugin_metadata
function, we need aitem.id
(expectation is the plugin name) to check metadata schema of specific plugin.apisix/apisix/plugin.lua
Lines 1040 to 1042 in 64b81c4
but plugin metadata don't have a id field in our admin api, so when apisix startup with a exist plugin metadata, the checker will be triggered in
config_etcd:load_full_data
apisix/apisix/core/config_etcd.lua
Lines 489 to 495 in 64b81c4
and then checker failed with this log:
Part 2
When watch a new data from etcd,
config_etcd.lua
only check configuration that has configure with aitem_schema
apisix/apisix/core/config_etcd.lua
Lines 667 to 685 in 64b81c4
because
plugin_metadata
only setchecker
field withoutitem_schema
, so the new plugin metadata watch from etcd don't validate by schema too.Expected Behavior
No response
Error Logs
No response
Steps to Reproduce
/
Environment
/
The text was updated successfully, but these errors were encountered: