From ab991ce1d7f67929c284602ca13f3942e946cbd5 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Thu, 5 Jan 2023 17:25:28 +0000
Subject: [PATCH] fix(mastodon): Fix incorrect streaming path in ingress

This patch resolves a potential issue with the streaming endpoint, which
is different in the docs, than in the helm chart. This is integrating the
upstream issue into this chart, which should resolve potential issues
with non-default frontends: https://github.com/mastodon/mastodon/pull/19896
---
 charts/mastodon/templates/ingress.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/charts/mastodon/templates/ingress.yaml b/charts/mastodon/templates/ingress.yaml
index e5c5e1dc6..27ac60f13 100644
--- a/charts/mastodon/templates/ingress.yaml
+++ b/charts/mastodon/templates/ingress.yaml
@@ -52,7 +52,7 @@ spec:
             {{- if or ($.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not ($.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }}
             pathType: Prefix
             {{- end }}
-          - path: {{ .path }}api/v1/streaming/
+          - path: {{ .path }}api/v1/streaming
             backend:
               {{- if or ($.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not ($.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }}
               service:
-- 
GitLab