From 2800548a4b44d090a75f666df8eb495aaba2df07 Mon Sep 17 00:00:00 2001 From: Lars Scheibling Date: Sun, 4 Jun 2023 08:27:43 +0000 Subject: [PATCH] Fixed customer label --- .gitlab-ci.yml | 2 +- Chart/templates/_helpers.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1ccc225..07743f2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ variables: - HELM_CHART_VERSION: "0.5.4" + HELM_CHART_VERSION: "0.5.5" stages: - deploy diff --git a/Chart/templates/_helpers.tpl b/Chart/templates/_helpers.tpl index 9a79f30..9a76373 100644 --- a/Chart/templates/_helpers.tpl +++ b/Chart/templates/_helpers.tpl @@ -38,7 +38,7 @@ app.kubernetes.io/name: {{ include "..name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/managed-by: {{ .Release.Service }} -cloudyne.systems/customer: {{ .Values.customer.legalName }} +cloudyne.systems/customer: {{ .Values.customer.legalName | replace " " "-" | trunc 63 | trimSuffix "-" }} cloudyne.systems/customer-legal-id: {{ .Values.customer.legalId }} cloudyne.systems/site: {{ .Values.site.domain }} {{- end }}