chore: make plugins config to low level

This commit is contained in:
Zhongwen Deng 2023-04-20 18:00:09 +08:00
parent 72685beb72
commit bcc8f4313b
4 changed files with 14 additions and 8 deletions

View File

@ -29,7 +29,7 @@
namespace() -> "plugin".
roots() -> [?CONF_ROOT].
roots() -> [{?CONF_ROOT, ?HOCON(?R_REF(?CONF_ROOT), #{importance => ?IMPORTANCE_LOW})}].
fields(?CONF_ROOT) ->
#{
@ -73,16 +73,19 @@ states(type) -> ?ARRAY(?R_REF(state));
states(required) -> false;
states(default) -> [];
states(desc) -> ?DESC(states);
states(importance) -> ?IMPORTANCE_HIGH;
states(_) -> undefined.
install_dir(type) -> string();
install_dir(required) -> false;
%% runner's root dir
%% runner's root dir todo move to data dir in 5.1
install_dir(default) -> <<"plugins">>;
install_dir(T) when T =/= desc -> undefined;
install_dir(desc) -> ?DESC(install_dir).
install_dir(desc) -> ?DESC(install_dir);
install_dir(importance) -> ?IMPORTANCE_LOW;
install_dir(_) -> undefined.
check_interval(type) -> emqx_schema:duration();
check_interval(default) -> <<"5s">>;
check_interval(T) when T =/= desc -> undefined;
check_interval(desc) -> ?DESC(check_interval).
check_interval(desc) -> ?DESC(check_interval);
check_interval(deprecated) -> {since, "5.0.24"};
check_interval(_) -> undefined.

View File

@ -2,7 +2,7 @@
{application, emqx_rule_engine, [
{description, "EMQX Rule Engine"},
% strict semver, bump manually!
{vsn, "5.0.14"},
{vsn, "5.0.15"},
{modules, []},
{registered, [emqx_rule_engine_sup, emqx_rule_engine]},
{applications, [kernel, stdlib, rulesql, getopt, emqx_ctl]},

View File

@ -0,0 +1,3 @@
Set the level of plugin configuration options to low level,
in most cases, users only need to manage plugins on the dashboard
without the need for manual modification, so we lowered the level.

View File

@ -1,6 +1,6 @@
{application, emqx_ee_connector, [
{description, "EMQX Enterprise connectors"},
{vsn, "0.1.10"},
{vsn, "0.1.11"},
{registered, []},
{applications, [
kernel,