Skip to content

Commit 9eb4c4a

Browse files
authored
feat: add two uri options to gateway chart (#200)
Signed-off-by: Nic <[email protected]>
1 parent 5944156 commit 9eb4c4a

File tree

5 files changed

+17
-2
lines changed

5 files changed

+17
-2
lines changed

charts/api7/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.17.20
18+
version: 0.17.21
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/api7/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# api7ee3
22

3-
![Version: 0.17.20](https://img.shields.io/badge/Version-0.17.20-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.8.10](https://img.shields.io/badge/AppVersion-3.8.10-informational?style=flat-square)
3+
![Version: 0.17.21](https://img.shields.io/badge/Version-0.17.21-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.8.10](https://img.shields.io/badge/AppVersion-3.8.10-informational?style=flat-square)
44

55
A Helm chart for Kubernetes
66

charts/gateway/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ The command removes all the Kubernetes components associated with the chart and
6161
| apisix.affinity | object | `{}` | Set affinity for API7 Gateway deploy |
6262
| apisix.customLuaSharedDicts | list | `[]` | Add custom [lua_shared_dict](https://github.com/openresty/lua-nginx-module#toc88) settings, click [here](https://github.com/apache/apisix-helm-chart/blob/master/charts/apisix/values.yaml#L27-L30) to learn the format of a shared dict |
6363
| apisix.customizedConfig | object | `{}` | If apisix.enableCustomizedConfig is true, full customized config.yaml. Please note that other settings about APISIX config will be ignored |
64+
| apisix.deleteURITailSlash | bool | `false` | Delete the '/' at the end of the URI |
6465
| apisix.enableCustomizedConfig | bool | `false` | Enable full customized config.yaml |
6566
| apisix.enableIPv6 | bool | `true` | Enable nginx IPv6 resolver |
6667
| apisix.enableServerTokens | bool | `true` | Whether the APISIX version number should be shown in Server header |
@@ -105,6 +106,7 @@ The command removes all the Kubernetes components associated with the chart and
105106
| apisix.kind | string | `"Deployment"` | Use a `DaemonSet` or `Deployment` |
106107
| apisix.meta.luaSharedDict.prometheus-metrics | string | `"15m"` | |
107108
| apisix.nodeSelector | object | `{}` | Node labels for API7 Gateway pod assignment |
109+
| apisix.normalizeURILikeServlet | bool | `false` | The URI normalization in servlet is a little different from the RFC's. See https://github.com/jakartaee/servlet/blob/master/spec/src/main/asciidoc/servlet-spec-body.adoc#352-uri-path-canonicalization, which is used under Tomcat. Turn this option on if you want to be compatible with servlet when matching URI path. |
108110
| apisix.podAnnotations | object | `{}` | Annotations to add to each pod |
109111
| apisix.podDisruptionBudget | object | `{"enabled":false,"maxUnavailable":1,"minAvailable":"90%"}` | See https://kubernetes.io/docs/tasks/run-application/configure-pdb/ for more details |
110112
| apisix.podDisruptionBudget.enabled | bool | `false` | Enable or disable podDisruptionBudget |

charts/gateway/templates/configmap.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ data:
6262
# disk_path: "/tmp/disk_cache_two"
6363
# cache_levels: "1:2"
6464
65+
delete_uri_tail_slash: {{ .Values.apisix.deleteURITailSlash }} # delete the '/' at the end of the URI
66+
# The URI normalization in servlet is a little different from the RFC's.
67+
# See https://github.com/jakartaee/servlet/blob/master/spec/src/main/asciidoc/servlet-spec-body.adoc#352-uri-path-canonicalization,
68+
# which is used under Tomcat.
69+
# Turn this option on if you want to be compatible with servlet when matching URI path.
70+
normalize_uri_like_servlet: {{ .Values.apisix.normalizeURILikeServlet }}
6571
router:
6672
http: {{ .Values.apisix.httpRouter }} # radixtree_uri: match route by uri(base on radixtree)
6773
# radixtree_host_uri: match route by host + uri(base on radixtree)

charts/gateway/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ apisix:
9999
extraLuaPath: ""
100100
extraLuaCPath: ""
101101

102+
# -- Delete the '/' at the end of the URI
103+
deleteURITailSlash: false
104+
# -- The URI normalization in servlet is a little different from the RFC's.
105+
# See https://github.com/jakartaee/servlet/blob/master/spec/src/main/asciidoc/servlet-spec-body.adoc#352-uri-path-canonicalization,
106+
# which is used under Tomcat.
107+
# Turn this option on if you want to be compatible with servlet when matching URI path.
108+
normalizeURILikeServlet: false
102109
# -- Defines how apisix handles routing:
103110
# - radixtree_uri: match route by uri(base on radixtree)
104111
# - radixtree_host_uri: match route by host + uri(base on radixtree)

0 commit comments

Comments
 (0)