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 }}