You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by zh...@apache.org on 2022/03/23 01:09:36 UTC
[apisix-helm-chart] branch master updated: feat(apisix): allow extPlugins to be configured (#250)
This is an automated email from the ASF dual-hosted git repository.
zhangjintao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-helm-chart.git
The following commit(s) were added to refs/heads/master by this push:
new bf241b7 feat(apisix): allow extPlugins to be configured (#250)
bf241b7 is described below
commit bf241b7c50084ed6d874d420c634ca32168b2a84
Author: Lyon Hill <ly...@gmail.com>
AuthorDate: Tue Mar 22 19:09:30 2022 -0600
feat(apisix): allow extPlugins to be configured (#250)
---
charts/apisix/README.md | 8 ++++++++
charts/apisix/templates/configmap.yaml | 8 ++++++++
charts/apisix/values.yaml | 6 ++++++
3 files changed, 22 insertions(+)
diff --git a/charts/apisix/README.md b/charts/apisix/README.md
index f29e1b1..9e773de 100644
--- a/charts/apisix/README.md
+++ b/charts/apisix/README.md
@@ -143,6 +143,14 @@ If etcd.enabled is true, set more values of bitnami/etcd helm chart use etcd as
Default enabled plugins. See [configmap template](https://github.com/apache/apisix-helm-chart/blob/master/charts/apisix/templates/configmap.yaml) for details.
+
+### external plugin parameters
+
+| Parameter | Description | Default |
+|---------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------|
+| `extPlugin.enabled` | Enable External Plugins. See [external plugin](https://apisix.apache.org/docs/apisix/next/external-plugin/) | `false` |
+| `extPlugin.cmd` | the command and its arguements to run as a subprocess | `{}` |
+
### custom plugin parameters
| Parameter | Description | Default |
diff --git a/charts/apisix/templates/configmap.yaml b/charts/apisix/templates/configmap.yaml
index c61b183..26bb95d 100644
--- a/charts/apisix/templates/configmap.yaml
+++ b/charts/apisix/templates/configmap.yaml
@@ -257,6 +257,14 @@ data:
- {{ $plugin }}
{{- end }}
+ {{- if .Values.extPlugin.enabled }}
+ ext-plugin:
+ cmd:
+ {{- range $arg := .Values.extPlugin.cmd }}
+ - {{ $arg }}
+ {{- end }}
+ {{- end }}
+
{{- if or .Values.pluginAttrs .Values.customPlugins.enabled .Values.serviceMonitor.enabled}}
plugin_attr:
{{- if .Values.serviceMonitor.enabled }}
diff --git a/charts/apisix/values.yaml b/charts/apisix/values.yaml
index 1032d29..52160a1 100644
--- a/charts/apisix/values.yaml
+++ b/charts/apisix/values.yaml
@@ -210,6 +210,8 @@ plugins:
- traffic-split
- gzip
- real-ip
+ - ext-plugin-pre-req
+ - ext-plugin-post-req
stream_plugins:
- mqtt-proxy
- ip-restriction
@@ -217,6 +219,10 @@ stream_plugins:
pluginAttrs: {}
+extPlugin:
+ enabled: false
+ cmd: ["/path/to/apisix-plugin-runner/runner", "run"]
+
# customPlugins allows you to mount your own HTTP plugins.
customPlugins:
enabled: false