3
0
mirror of https://github.com/mastodon/chart synced 2025-05-17 20:43:21 +00:00

Don't include digest versions in app version label

This commit is contained in:
Tim Campbell 2025-03-26 11:07:33 +01:00
parent 224c27047a
commit 5991d27ffa
3 changed files with 6 additions and 2 deletions

View File

@ -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.

View File

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

View File

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