Skip to content

Commit a95f96f

Browse files
author
Harry Waye
authored
Revert "fix(ingress): ensure only capture and decide go to events (#659)
* Revert "fix(ingress): ensure only capture and decide go to events deployment (#656)" I have no idea why but the error rates on `/s/` increased. This reverts commit b27d68c. * bump version
1 parent 91e2efc commit a95f96f

File tree

3 files changed

+2
-77
lines changed

3 files changed

+2
-77
lines changed

charts/posthog/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type: application
1111

1212
# This is the chart version. This version number should be incremented each time you make changes
1313
# to the chart and its templates, including the app version.
14-
version: 30.2.5
14+
version: 30.2.6
1515

1616
# This is the version number of the application being deployed. This version number should be
1717
# incremented each time you make changes to the application.

charts/posthog/templates/ingress.yaml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -78,57 +78,24 @@ spec:
7878
port:
7979
number: {{ .Values.service.externalPort }}
8080
{{- if (ne (include "ingress.type" .) "clb") }}
81-
# Match any url with a prefix ending with a forward-slash. Previously
82-
# we would match without the forward-slash. To ensure that we pick up
83-
# with the forward-slash omitted we also match Exact. Note that we
84-
# could use e.g. [ingress-nginx regex support](https://kubernetes.github.io/ingress-nginx/user-guide/ingress-path-matching/#regular-expression-support)
85-
# but to keep this agnostic we use a combination of Prefix and Exact.
86-
#
87-
# NOTE: we still use a Prefix match on paths with a forward-slash,
88-
# just in case there are cases that we have subpaths for these
89-
# endpoints that still need to be passed to the `posthog-events` pods.
9081
- pathType: Prefix
91-
path: "/capture/"
92-
backend: *INGESTION
93-
- pathType: Exact
9482
path: "/capture"
9583
backend: *INGESTION
96-
9784
- pathType: Prefix
98-
path: "/decide/"
99-
backend: *INGESTION
100-
- pathType: Exact
10185
path: "/decide"
10286
backend: *INGESTION
103-
10487
- pathType: Prefix
105-
path: "/e/"
106-
backend: *INGESTION
107-
- pathType: Exact
10888
path: "/e"
10989
backend: *INGESTION
110-
11190
- pathType: Prefix
112-
path: "/engage/"
113-
backend: *INGESTION
114-
- pathType: Exact
11591
path: "/engage"
11692
backend: *INGESTION
117-
11893
- pathType: Prefix
119-
path: "/track/"
120-
backend: *INGESTION
121-
- pathType: Exact
12294
path: "/track"
12395
backend: *INGESTION
124-
12596
- pathType: Prefix
126-
path: "/s/"
127-
backend: *INGESTION
128-
- pathType: Exact
12997
path: "/s"
13098
backend: *INGESTION
131-
13299
{{- else }}
133100
- pathType: ImplementationSpecific
134101
path: "/capture/*"

charts/posthog/tests/__snapshot__/ingress.yaml.snap

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -17,87 +17,45 @@ the "spec" path should match the snapshot when using default values:
1717
number: 8000
1818
path: /batch
1919
pathType: Prefix
20-
- backend:
21-
service:
22-
name: RELEASE-NAME-posthog-events
23-
port:
24-
number: 8000
25-
path: /capture/
26-
pathType: Prefix
2720
- backend:
2821
service:
2922
name: RELEASE-NAME-posthog-events
3023
port:
3124
number: 8000
3225
path: /capture
33-
pathType: Exact
34-
- backend:
35-
service:
36-
name: RELEASE-NAME-posthog-events
37-
port:
38-
number: 8000
39-
path: /decide/
4026
pathType: Prefix
4127
- backend:
4228
service:
4329
name: RELEASE-NAME-posthog-events
4430
port:
4531
number: 8000
4632
path: /decide
47-
pathType: Exact
48-
- backend:
49-
service:
50-
name: RELEASE-NAME-posthog-events
51-
port:
52-
number: 8000
53-
path: /e/
5433
pathType: Prefix
5534
- backend:
5635
service:
5736
name: RELEASE-NAME-posthog-events
5837
port:
5938
number: 8000
6039
path: /e
61-
pathType: Exact
62-
- backend:
63-
service:
64-
name: RELEASE-NAME-posthog-events
65-
port:
66-
number: 8000
67-
path: /engage/
6840
pathType: Prefix
6941
- backend:
7042
service:
7143
name: RELEASE-NAME-posthog-events
7244
port:
7345
number: 8000
7446
path: /engage
75-
pathType: Exact
76-
- backend:
77-
service:
78-
name: RELEASE-NAME-posthog-events
79-
port:
80-
number: 8000
81-
path: /track/
8247
pathType: Prefix
8348
- backend:
8449
service:
8550
name: RELEASE-NAME-posthog-events
8651
port:
8752
number: 8000
8853
path: /track
89-
pathType: Exact
90-
- backend:
91-
service:
92-
name: RELEASE-NAME-posthog-events
93-
port:
94-
number: 8000
95-
path: /s/
9654
pathType: Prefix
9755
- backend:
9856
service:
9957
name: RELEASE-NAME-posthog-events
10058
port:
10159
number: 8000
10260
path: /s
103-
pathType: Exact
61+
pathType: Prefix

0 commit comments

Comments
 (0)