From 43eab3c50af087b848d6ee386b4700329a6a77f0 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 29 Oct 2024 12:21:22 +0100 Subject: [PATCH] fix: add truncate filter on version label --- charts/keycloak/templates/_helpers.tpl | 2 +- charts/keycloakx/templates/_helpers.tpl | 2 +- charts/mailhog/templates/_helpers.tpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/keycloak/templates/_helpers.tpl b/charts/keycloak/templates/_helpers.tpl index bcb7a920..0c28836c 100644 --- a/charts/keycloak/templates/_helpers.tpl +++ b/charts/keycloak/templates/_helpers.tpl @@ -37,7 +37,7 @@ Common labels {{- define "keycloak.labels" -}} helm.sh/chart: {{ include "keycloak.chart" . }} {{ include "keycloak.selectorLabels" . }} -app.kubernetes.io/version: {{ .Values.image.tag | default .Chart.AppVersion | quote }} +app.kubernetes.io/version: {{ .Values.image.tag | default .Chart.AppVersion | trunc 63 | quote }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end }} diff --git a/charts/keycloakx/templates/_helpers.tpl b/charts/keycloakx/templates/_helpers.tpl index 9eeccfa5..93fe4af1 100644 --- a/charts/keycloakx/templates/_helpers.tpl +++ b/charts/keycloakx/templates/_helpers.tpl @@ -35,7 +35,7 @@ Common labels {{- define "keycloak.labels" -}} helm.sh/chart: {{ include "keycloak.chart" . }} {{ include "keycloak.selectorLabels" . }} -app.kubernetes.io/version: {{ .Values.image.tag | default .Chart.AppVersion | quote }} +app.kubernetes.io/version: {{ .Values.image.tag | default .Chart.AppVersion | trunc 63 | quote }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end }} diff --git a/charts/mailhog/templates/_helpers.tpl b/charts/mailhog/templates/_helpers.tpl index 64897b5c..f377866b 100644 --- a/charts/mailhog/templates/_helpers.tpl +++ b/charts/mailhog/templates/_helpers.tpl @@ -37,7 +37,7 @@ Common labels {{- define "mailhog.labels" -}} helm.sh/chart: {{ include "mailhog.chart" . }} {{ include "mailhog.selectorLabels" . }} -app.kubernetes.io/version: {{ .Values.image.tag | default .Chart.AppVersion | quote }} +app.kubernetes.io/version: {{ .Values.image.tag | default .Chart.AppVersion | trunc 63 | quote }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end }}