3
0
mirror of https://github.com/mastodon/chart synced 2025-04-27 10:43:37 +00:00

Shorten digest versions in app version label (#185)

This commit is contained in:
Tim Campbell 2025-03-26 11:45:59 +01:00 committed by GitHub
parent 224c27047a
commit 978a8569e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
# 6.2.2
- `app.kubernetes.io/version` shortens any potential digest hash to 7 characters to avoid hitting the 63 character label limit.
# 6.2.1 # 6.2.1
- Fixed some situations where disabling all bitnami charts caused it to error. - 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 # 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. # you make changes to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # 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 # 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 # 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.selectorLabels" . }}
{{ include "mastodon.globalLabels" . }} {{ include "mastodon.globalLabels" . }}
{{- if .Values.image.tag }} {{- if .Values.image.tag }}
app.kubernetes.io/version: {{ .Values.image.tag | quote }} app.kubernetes.io/version: {{ regexReplaceAll "@(\\w+:\\w{0,7})\\w*" .Values.image.tag "@${1}" | quote }}
{{- else if .Chart.AppVersion }} {{- else if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }} {{- end }}