You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helm/pkg/lint/rules/testdata/badlibrary/templates/shortname.tpl

11 lines
464 B

{{- define "common.shortname"}}
{{- $global := default (dict) .Values.global -}}
{{- $base := default .Chart.Name .Values.nameOverride -}}
{{- $gpre := default "" $global.namePrefix -}}
{{- $pre := default "" .Values.namePrefix -}}
{{- $suf := default "" .Values.nameSuffix -}}
{{- $gsuf := default "" $global.nameSuffix -}}
{{- $shortname := print $gpre $pre $base $suf $gsuf -}}
{{- $shortname | lower | trunc 54 | trimSuffix "-" -}}
{{- end -}}