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:
parent
224c27047a
commit
978a8569e5
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user