Skip to content

Commit

Permalink
Deal better with long versions (i.e. branch names)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjpryor committed Nov 8, 2023
1 parent 6eb0c15 commit 5b0b34c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@ app.kubernetes.io/instance: {{ .Release.Name }}
Labels for a chart-level resource.
*/}}
{{- define "azimuth-identity-operator.labels" -}}
helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | lower | trunc 63 | trimSuffix "-" }}
helm.sh/chart: {{
printf "%s-%s" .Chart.Name .Chart.Version |
replace "+" "_" |
lower |
trunc 63 |
trimSuffix "-" |
trimSuffix "." |
trimSuffix "_"
}}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
Expand Down

0 comments on commit 5b0b34c

Please sign in to comment.