Skip to content

Commit a8e07a1

Browse files
committed
Include forward slash in route pattern regex
1 parent baef78b commit a8e07a1

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

applications/samples/deploy/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ harness:
77
service:
88
port: 8080
99
auto: true
10-
route_pattern: '(?!\/metrics\/?$)\/.*'
10+
route_pattern: '/(?!\/metrics\/?$)\/.*'
1111
use_services:
1212
- name: common
1313
deployment:

deployment-configuration/helm/templates/ingress.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
{{- end }}
4141
{{- end }}
4242
{{- end }}
43-
- path: /{{ $routePattern }}
43+
- path: {{ $routePattern }}
4444
pathType: ImplementationSpecific
4545
backend:
4646
service:
@@ -54,7 +54,7 @@
5454
{{ $secured_gatekeepers := and .root.Values.secured_gatekeepers }}
5555
{{ $app := get .root.Values.apps .service_name}}
5656
{{- $routePattern := default .Values.ingress.route_pattern $app.harness.route_pattern }}
57-
- path: /proxy/{{ $app.harness.service.name }}/{{ $routePattern }}
57+
- path: /proxy/{{ $app.harness.service.name }}{{ $routePattern }}
5858
pathType: ImplementationSpecific
5959
backend:
6060
service:

deployment-configuration/helm/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ingress:
4141
# -- Email for letsencrypt.
4242
email: cloudharness@metacell.us
4343
# -- Default regex segment for routes (used in paths like '/(pattern)').
44-
route_pattern: "(.*)"
44+
route_pattern: "/(.*)"
4545
backup:
4646
# -- Flag to enable/disable backups.
4747
active: false

0 commit comments

Comments
 (0)