Skip to content

Commit c3a28ab

Browse files
authored
fix: path with sepecial characters warning #10281 #10308 (#10330)
1 parent a687343 commit c3a28ab

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

docs/examples/rewrite/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ Rewriting can be controlled using the following annotations:
3030
!!! note
3131
[Captured groups](https://www.regular-expressions.info/refcapture.html) are saved in numbered placeholders, chronologically, in the form `$1`, `$2` ... `$n`. These placeholders can be used as parameters in the `rewrite-target` annotation.
3232

33+
!!! note
34+
Please see the [FAQ](../faq.md#validation-of-path) for Validation Of __`path`__
35+
3336
Create an Ingress rule with a rewrite annotation:
3437

3538
```console
@@ -49,7 +52,7 @@ spec:
4952
http:
5053
paths:
5154
- path: /something(/|$)(.*)
52-
pathType: Prefix
55+
pathType: ImplementationSpecific
5356
backend:
5457
service:
5558
name: http-svc

docs/user-guide/ingress-path-matching.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
!!! important
66
Regular expressions and wild cards are not supported in the `spec.rules.host` field. Full hostnames must be used.
77

8+
!!! note
9+
Please see the [FAQ](../faq.md#validation-of-path) for Validation Of __`path`__
10+
811
The ingress controller supports **case insensitive** regular expressions in the `spec.rules.http.paths.path` field.
912
This can be enabled by setting the `nginx.ingress.kubernetes.io/use-regex` annotation to `true` (the default is false).
1013

@@ -28,7 +31,7 @@ spec:
2831
http:
2932
paths:
3033
- path: /foo/.*
31-
pathType: Prefix
34+
pathType: ImplementationSpecific
3235
backend:
3336
service:
3437
name: test
@@ -95,7 +98,7 @@ spec:
9598
http:
9699
paths:
97100
- path: /foo/bar/(.+)
98-
pathType: Prefix
101+
pathType: ImplementationSpecific
99102
backend:
100103
service:
101104
name: service3
@@ -160,7 +163,7 @@ spec:
160163
port:
161164
number: 80
162165
- path: /foo/bar/[A-Z0-9]{3}
163-
pathType: Prefix
166+
pathType: ImplementationSpecific
164167
backend:
165168
service:
166169
name: test

0 commit comments

Comments
 (0)