Or just make the `plugins` and `pluginConfig` fields exclusive?

Chao Zhang
https://github.com/tokers

On September 22, 2021 at 17:47:53, Jintao Zhang ([email protected])
wrote:

When a route already have plugins field configured, the plugins in the
plugin config will be merged into it. The same plugin in the plugin config
will override one in the plugins.

https://apisix.apache.org/docs/apisix/architecture-design/plugin-config

wei jin <[email protected]> 于2021年9月22日周三 下午4:55写道:

> +1 Agree to add this feature.
>
> BTW, In `ApisixRoute` the configuration of `ApisixPluginConfig` and
> `plugins` can not exist at the same time.
>
> Jintao Zhang <[email protected]> 于2021年9月22日周三 下午4:36写道:
>
> > # background
> >
> > Many functions of Apache APISIX are now provided through plugins. In
> > scenarios where APISIX is used extensively, *these configurations are
> often
> > reusable.*
> >
> > In February of this year, plugin config capabilities has been added to
> > Apache APISIX. [1]
> >
> > I propose to add a custom resource of `ApisixPluginConfig` to Apache
> APISIX
> > Ingress to support this feature.[2]
> >
> > # implement
> >
> > * Add an `ApisixPluginConfig` custom resources. It can be converted to
> > APISIX's `plugin_config`, Use its name as its id;
> > * When we add this configuration to `ApisixRoute`, use its name as an
> > index.
> >
> >
> >
> > [1]: https://github.com/apache/apisix/pull/3567
> > [2]:
> > https://apisix.apache.org/docs/apisix/architecture-design/plugin-config
> >
>

Reply via email to