From f80723ebe126f4459db0ebd88f2bb5cde1963d9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Goinvic?= Date: Wed, 27 Nov 2024 11:53:41 +0100 Subject: [PATCH] charts: fix element web required error message --- charts/element-web/templates/_helpers.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/element-web/templates/_helpers.tpl b/charts/element-web/templates/_helpers.tpl index 172b57a9..42fd192d 100644 --- a/charts/element-web/templates/_helpers.tpl +++ b/charts/element-web/templates/_helpers.tpl @@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial {{- define "element-io.element-web.labels" -}} {{- $global := .global -}} -{{- with required "element-io.element-web.labels" .context -}} +{{- with required "element-io.element-web.labels missing context" .context -}} {{ include "element-io.ess-library.labels.common" (list $global .labels) }} app.kubernetes.io/component: matrix-client app.kubernetes.io/name: element-web @@ -17,7 +17,7 @@ app.kubernetes.io/version: {{ .image.tag | default $global.Chart.AppVersion }} {{- define "element-io.element-web.serviceAccountName" -}} {{- $global := .global -}} -{{- with required "element-io.element-web.serviceAccountName" .context -}} +{{- with required "element-io.element-web.serviceAccountName missing context" .context -}} {{ default (printf "%s-element-web" $global.Release.Name ) .serviceAccount.name }} {{- end }} {{- end }}