From bad7efcd2586031e030f29bcfc1a76f2ef86f320 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Tue, 10 Jan 2023 19:17:14 +0000
Subject: [PATCH] fix(mastodon): Fix broken ingress rule

This patch fixes the mastodon ingress rule, that was "corrected" to
follow the official docs, but uses the `exact` match rule, instead of
the `Prefix` rule, resulting in breaking the mastodon webinterface while
fixing other clients.
---
 charts/mastodon/Chart.yaml             | 2 +-
 charts/mastodon/templates/ingress.yaml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/charts/mastodon/Chart.yaml b/charts/mastodon/Chart.yaml
index e88227bf3..a9fb133da 100644
--- a/charts/mastodon/Chart.yaml
+++ b/charts/mastodon/Chart.yaml
@@ -11,7 +11,7 @@ sources:
     - https://git.shivering-isles.com/shivering-isles/infrastructure-gitops/-/tree/main/charts/mastodon
 
 type: application
-version: 4.0.1
+version: 4.0.2
 # renovate: image=docker.io/tootsuite/mastodon
 appVersion: v3.5.5
 
diff --git a/charts/mastodon/templates/ingress.yaml b/charts/mastodon/templates/ingress.yaml
index 27ac60f13..5a3409a23 100644
--- a/charts/mastodon/templates/ingress.yaml
+++ b/charts/mastodon/templates/ingress.yaml
@@ -64,7 +64,7 @@ spec:
               servicePort: {{ $streamingPort }}
               {{- end }}
             {{- if or ($.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not ($.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }}
-            pathType: Exact
+            pathType: Prefix
             {{- end }}
           {{- end }}
     {{- end }}
-- 
GitLab