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/10/06 12:25:49 UTC
[apisix-helm-chart] branch master updated: Customizable http router name (#360)
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 43302b8 Customizable http router name (#360)
43302b8 is described below
commit 43302b85f40df5d6bffed5308f27147b37c6e7d2
Author: Nicola Racco <ni...@mikamai.com>
AuthorDate: Thu Oct 6 14:25:44 2022 +0200
Customizable http router name (#360)
---
charts/apisix/README.md | 1 +
charts/apisix/templates/configmap.yaml | 5 +++--
charts/apisix/values.yaml | 6 ++++++
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/charts/apisix/README.md b/charts/apisix/README.md
index 41a0ae7..f7a66f4 100644
--- a/charts/apisix/README.md
+++ b/charts/apisix/README.md
@@ -78,6 +78,7 @@ The following tables lists the configurable parameters of the apisix chart and t
| `apisix.luaModuleHook.configMapRef.name` | Name of the ConfigMap where the lua module codes store | "" |
| `apisix.luaModuleHook.configMapRef.mounts[].key` | Name of the ConfigMap key, for setting the mapping relationship between ConfigMap key and the lua module code path. | `""` |
| `apisix.luaModuleHook.configMapRef.mounts[].path` | Filepath of the plugin code, for setting the mapping relationship between ConfigMap key and the lua module code path. | `""` |
+| `apisix.httpRouter` | HTTP routing strategy. See [APISIX Router](https://apisix.apache.org/docs/apisix/terminology/router/) for the detail. | `[]` |
| `extraVolumes` | Additional `volume`, See [Kubernetes Volumes](https://kubernetes.io/docs/concepts/storage/volumes/) for the detail. | `[]` |
| `extraVolumeMounts` | Additional `volumeMounts`, See [Kubernetes Volumes](https://kubernetes.io/docs/concepts/storage/volumes/) for the detail. | `[]` |
diff --git a/charts/apisix/templates/configmap.yaml b/charts/apisix/templates/configmap.yaml
index 5a7904b..9398877 100644
--- a/charts/apisix/templates/configmap.yaml
+++ b/charts/apisix/templates/configmap.yaml
@@ -120,8 +120,9 @@ data:
key: {{ .Values.admin.credentials.viewer }}
role: viewer
router:
- http: 'radixtree_uri' # radixtree_uri: match route by uri(base on radixtree)
- # radixtree_host_uri: match route by host + uri(base on radixtree)
+ http: {{ .Values.apisix.httpRouter }} # radixtree_uri: match route by uri(base on radixtree)
+ # radixtree_host_uri: match route by host + uri(base on radixtree)
+ # radixtree_uri_with_parameter: match route by uri with parameters
ssl: 'radixtree_sni' # radixtree_sni: match route by SNI(base on radixtree)
{{- if or (index .Values "ingress-controller" "enabled") (and .Values.gateway.stream.enabled (or (gt (len .Values.gateway.stream.tcp) 0) (gt (len .Values.gateway.stream.udp) 0))) }}
stream_proxy: # TCP/UDP proxy
diff --git a/charts/apisix/values.yaml b/charts/apisix/values.yaml
index fd6b6c7..fed5c18 100644
--- a/charts/apisix/values.yaml
+++ b/charts/apisix/values.yaml
@@ -56,6 +56,12 @@ apisix:
- key: ""
path: ""
+ # Defines how apisix handles routing:
+ # - radixtree_uri: match route by uri(base on radixtree)
+ # - radixtree_host_uri: match route by host + uri(base on radixtree)
+ # - radixtree_uri_with_parameter: match route by uri with parameters
+ httpRouter: radixtree_uri
+
enableCustomizedConfig: false
customizedConfig: {}