Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/posthog/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 30.2.6
version: 30.2.7

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
33 changes: 33 additions & 0 deletions charts/posthog/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,24 +78,57 @@ spec:
port:
number: {{ .Values.service.externalPort }}
{{- if (ne (include "ingress.type" .) "clb") }}
# Match any url with a prefix ending with a forward-slash. Previously
# we would match without the forward-slash. To ensure that we pick up
# with the forward-slash omitted we also match Exact. Note that we
# could use e.g. [ingress-nginx regex support](https://kubernetes.github.io/ingress-nginx/user-guide/ingress-path-matching/#regular-expression-support)
# but to keep this agnostic we use a combination of Prefix and Exact.
#
# NOTE: we still use a Prefix match on paths with a forward-slash,
# just in case there are cases that we have subpaths for these
# endpoints that still need to be passed to the `posthog-events` pods.
- pathType: Prefix
path: "/capture/"
backend: *INGESTION
- pathType: Exact
path: "/capture"
backend: *INGESTION

- pathType: Prefix
path: "/decide/"
backend: *INGESTION
- pathType: Exact
path: "/decide"
backend: *INGESTION

- pathType: Prefix
path: "/e/"
backend: *INGESTION
- pathType: Exact
path: "/e"
backend: *INGESTION

- pathType: Prefix
path: "/engage/"
backend: *INGESTION
- pathType: Exact
path: "/engage"
backend: *INGESTION

- pathType: Prefix
path: "/track/"
backend: *INGESTION
- pathType: Exact
path: "/track"
backend: *INGESTION

- pathType: Prefix
path: "/s/"
backend: *INGESTION
- pathType: Exact
path: "/s"
backend: *INGESTION

{{- else }}
- pathType: ImplementationSpecific
path: "/capture/*"
Expand Down
44 changes: 43 additions & 1 deletion charts/posthog/tests/__snapshot__/ingress.yaml.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,45 +17,87 @@ the "spec" path should match the snapshot when using default values:
number: 8000
path: /batch
pathType: Prefix
- backend:
service:
name: RELEASE-NAME-posthog-events
port:
number: 8000
path: /capture/
pathType: Prefix
- backend:
service:
name: RELEASE-NAME-posthog-events
port:
number: 8000
path: /capture
pathType: Exact
- backend:
service:
name: RELEASE-NAME-posthog-events
port:
number: 8000
path: /decide/
pathType: Prefix
- backend:
service:
name: RELEASE-NAME-posthog-events
port:
number: 8000
path: /decide
pathType: Exact
- backend:
service:
name: RELEASE-NAME-posthog-events
port:
number: 8000
path: /e/
pathType: Prefix
- backend:
service:
name: RELEASE-NAME-posthog-events
port:
number: 8000
path: /e
pathType: Exact
- backend:
service:
name: RELEASE-NAME-posthog-events
port:
number: 8000
path: /engage/
pathType: Prefix
- backend:
service:
name: RELEASE-NAME-posthog-events
port:
number: 8000
path: /engage
pathType: Exact
- backend:
service:
name: RELEASE-NAME-posthog-events
port:
number: 8000
path: /track/
pathType: Prefix
- backend:
service:
name: RELEASE-NAME-posthog-events
port:
number: 8000
path: /track
pathType: Exact
- backend:
service:
name: RELEASE-NAME-posthog-events
port:
number: 8000
path: /s/
pathType: Prefix
- backend:
service:
name: RELEASE-NAME-posthog-events
port:
number: 8000
path: /s
pathType: Prefix
pathType: Exact