membphis commented on issue #2296:
URL: https://github.com/apache/apisix/issues/2296#issuecomment-723527025


   `plugin attr` is mainly for providing the default value, we can use the 
default value of `plugin metadata` to support this too.
   
   here is an example: 
https://github.com/apache/apisix/blob/master/apisix/plugins/http-logger.lua#L61
   
   if the admin user did not set any new value, then the plugin will use the 
default value(same as `plugin attr`).
   
   if the admin user set a new value by `plugin metadata` API, then the plugin 
will use the new value.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to