Skip to content

Commit 41022d8

Browse files
committed
Add matcher to route table for user v1 profiles.
1 parent 03d2af2 commit 41022d8

3 files changed

Lines changed: 42 additions & 17 deletions

File tree

charts/tidepool/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
description: A Helm chart for Tidepool
33
name: tidepool
4-
version: 0.24.3
4+
version: 0.25.0
55
maintainers:
66
- name: Todd Kazakov
77
email: todd@tidepool.org

charts/tidepool/charts/auth/templates/4-routetable.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,5 +179,15 @@ spec:
179179
single:
180180
upstream:
181181
name: auth
182-
182+
- matchers:
183+
- methods:
184+
- GET
185+
- POST
186+
- PUT
187+
- DELETE
188+
regex: /v1/users/(legacy/)?[^/]+/profile
189+
routeAction:
190+
single:
191+
upstream:
192+
name: auth
183193
{{- end }}

charts/tidepool/charts/seagull/templates/4-routetable.yaml

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,37 @@ spec:
2020
options:
2121
extauth:
2222
disable: true
23-
# - matchers:
24-
# - regex: '/metadata/[^/]+/profile'
25-
# routeAction:
26-
# single:
27-
# upstream:
28-
# name: auth
29-
# options:
30-
# regexRewrite:
31-
# pattern:
32-
# regex: '/metadata/'
33-
# substitution: '/v1/users/legacy/'
34-
# retries:
35-
# retryOn: '5xx'
36-
# numRetries: 3
37-
# perTryTimeout: '15s'
3823
- matchers:
24+
- regex: '/metadata/[^/]+/profile'
25+
routeAction:
26+
single:
27+
upstream:
28+
name: auth
29+
options:
30+
regexRewrite:
31+
pattern:
32+
regex: '/metadata/'
33+
substitution: '/v1/users/legacy/'
34+
retries:
35+
retryOn: '5xx'
36+
numRetries: 3
37+
perTryTimeout: '15s'
38+
- matchers:
39+
- regex: '/metadata/users/[^/]+/users'
40+
routeAction:
41+
single:
42+
upstream:
43+
name: auth
44+
options:
45+
regexRewrite:
46+
pattern:
47+
regex: '/metadata/users/'
48+
substitution: '/v1/users/'
49+
retries:
50+
retryOn: '5xx'
51+
numRetries: 3
52+
perTryTimeout: '15s'
53+
matchers:
3954
- prefix: /metadata/
4055
routeAction:
4156
single:

0 commit comments

Comments
 (0)