From 5991d27ffa32100bfd218bbe3a8a034265e0633f Mon Sep 17 00:00:00 2001 From: Tim Campbell Date: Wed, 26 Mar 2025 11:07:33 +0100 Subject: [PATCH] Don't include digest versions in app version label --- CHANGELOG.md | 4 ++++ Chart.yaml | 2 +- templates/_helpers.tpl | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f4a01c5..85cae03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 6.2.2 + +- `app.kubernetes.io/version` no longer inlcudes digests when specified, as they can often go over the 63 character limit. + # 6.2.1 - Fixed some situations where disabling all bitnami charts caused it to error. diff --git a/Chart.yaml b/Chart.yaml index 1683d61..4373419 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time # you make changes to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 6.2.1 +version: 6.2.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index 09bbb0a..fb5900b 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -48,7 +48,7 @@ helm.sh/chart: {{ include "mastodon.chart" . }} {{ include "mastodon.selectorLabels" . }} {{ include "mastodon.globalLabels" . }} {{- if .Values.image.tag }} -app.kubernetes.io/version: {{ .Values.image.tag | quote }} +app.kubernetes.io/version: {{ regexReplaceAll "@[a-zA-Z0-9:]+" .Values.image.tag "" | quote }} {{- else if .Chart.AppVersion }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }}