From 0399affd0e86291573eb6cb8debf49e62295d166 Mon Sep 17 00:00:00 2001 From: Sergi Philipsen Date: Mon, 3 Jul 2023 16:45:32 +0200 Subject: [PATCH] fix: nginxLabelSelectors --- charts/zaakbrug/templates/_helpers.tpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/zaakbrug/templates/_helpers.tpl b/charts/zaakbrug/templates/_helpers.tpl index a257b4894..c3a1a2e5a 100644 --- a/charts/zaakbrug/templates/_helpers.tpl +++ b/charts/zaakbrug/templates/_helpers.tpl @@ -81,8 +81,12 @@ We truncate at 57 chars in order to provide space for the "-nginx" suffix NGINX labels */}} {{- define "zaakbrug.nginxLabels" -}} -{{ include "zaakbrug.labels" . }} +helm.sh/chart: {{ include "zaakbrug.chart" . }} {{ include "zaakbrug.nginxSelectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end }} {{/*