Some plugins contain changes across multiple files and even need to patch APISIX / OpenResty itself. The solution should be able to handle it.
Zexuan Luo <[email protected]> 于2021年3月3日周三 上午10:04写道: > > Please explain how to use GitOps to update the custom plugins via dashboard. > > Yi Sun <[email protected]> 于2021年3月3日周三 上午9:44写道: > > > > 1. Is it possible to have the user sync the etcd lua file before re-package? > > 2. We can probably use other tools like GitOps to manage custom plugins? > > > > Thanks. > > > > Zexuan Luo <[email protected]> 于2021年3月2日周二 下午3:47写道: > > > > > Some users who write their custom plugins will re-package APISIX by > > > themselves. Sync the Lua files to etcd might not be a good choice for > > > them. > > > And etcd is not suitable to manage files. > > > > > > 孙毅 <[email protected]> 于2021年3月2日周二 下午3:38写道: > > > > > > > > Hello, devs, > > > > > > > > The current process for users who want to use custom plugins. > > > > 1. configure the custom plugin according to the apisix specification: > > > > https://github.com/apache/apisix/blob/ > > > > master/docs/en/latest/plugin-develop.md > > > > 2. export the apisix jsonschema file. > > > > 3. Manually import the exported jsonshcema file into the > > > > apisix-dashboard > > > > conf directory. 4. > > > > 4. restart manager-api. > > > > > > > > Disadvantage: The process is too tedious and requires manual copying > > > which > > > > is prone to errors > > > > > > > > Improvements: > > > > According to the design architecture of apisix and security > > > considerations, > > > > apisix does not allow direct modification of ETCD. > > > > 1. the user synchronizes the custom plugin lua files to etcd through the > > > > dashboard interface or by calling the interface. > > > > 2. apisix automatically synchronizes the custom plugin lua files to > > > > etcd. > > > > Advantage: greatly reduces the difficulty of using custom plugins, no > > > > manual synchronization process > > > > Disadvantages: > > > > 1.Only supports single lua files > > > > 2. Share dict is not supported > > > > > > > > what do you think? > > > > > > > > Thanks. > > >
