File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
charts/helm-dashboard/templates Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,9 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
11
11
If release name contains chart name it will be used as a full name.
12
12
*/} }
13
13
{ {- define " helm-dashboard.fullname" -} }
14
- { {- if .Values.fullnameOverride } }
15
- { {- .Values.fullnameOverride | trunc 63 | trimSuffix " -" } }
16
- { {- else } }
17
14
{ {- $name := default .Chart.Name .Values.nameOverride } }
18
- { {- if contains $name .Release.Name } }
19
- { {- .Release.Name | trunc 63 | trimSuffix " -" } }
20
- { {- else } }
21
- { {- printf " %s-%s" .Release.Name $name | trunc 63 | trimSuffix " -" } }
22
- { {- end } }
23
- { {- end } }
15
+ { {- $fullname := default (ternary .Release.Name (printf " %s-%s" .Release.Name $name ) (contains $name .Release.Name)) .Values.fullnameOverride } }
16
+ { {- $fullname | trunc 63 | trimSuffix " -" } }
24
17
{ {- end } }
25
18
26
19
{ {/*
You can’t perform that action at this time.
0 commit comments