From b2aaf9d3d9aa394e2b44b0639219e08b0f292711 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Fri, 31 Mar 2023 14:02:50 +0200
Subject: [PATCH] fix(mastodon): Use correct reference for secret name

This patch drops the usage of `common.names.fullname` as template, which
originates from the bitnami dependencies which fails if all dependencies
are disabled.

Since the relevant value that is intended to use is the name of the
secret from the helmchart itself, it makes no sense to use this subchart
as source, but rather use the same name as the secret name in this
chart.

References:
https://github.com/mastodon/chart/pull/60
---
 charts/mastodon/templates/_helpers.tpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/charts/mastodon/templates/_helpers.tpl b/charts/mastodon/templates/_helpers.tpl
index 2d1196e8d..2bc5dc5c8 100644
--- a/charts/mastodon/templates/_helpers.tpl
+++ b/charts/mastodon/templates/_helpers.tpl
@@ -94,7 +94,7 @@ Get the mastodon secret.
 {{- if .Values.mastodon.secrets.existingSecret }}
     {{- printf "%s" (tpl .Values.mastodon.secrets.existingSecret $) -}}
 {{- else -}}
-    {{- printf "%s" (include "common.names.fullname" .) -}}
+    {{- printf "%s" (include "mastodon.fullname" .) -}}
 {{- end -}}
 {{- end -}}
 
-- 
GitLab