diff --git a/CHANGELOG.md b/CHANGELOG.md index f4a01c5..f04ebb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 - 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..d07e2ad 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 "@(\\w+:\\w{0,7})\\w*" .Values.image.tag "@${1}" | quote }} {{- else if .Chart.AppVersion }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }}