Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[ONAP-wide] Replace .Release.Name with common.release
[oom.git]
/
kubernetes
/
common
/
common
/
templates
/
_name.tpl
diff --git
a/kubernetes/common/common/templates/_name.tpl
b/kubernetes/common/common/templates/_name.tpl
index
f84ca21
..
9b7e690
100644
(file)
--- a/
kubernetes/common/common/templates/_name.tpl
+++ b/
kubernetes/common/common/templates/_name.tpl
@@
-27,7
+27,7
@@
*/}}
{{- define "common.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
*/}}
{{- define "common.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
- {{- printf "%s-%s"
.Release.Name
$name | trunc 63 | trimSuffix "-" -}}
+ {{- printf "%s-%s"
(include "common.release" .)
$name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
{{- end -}}
{{/*
@@
-37,5
+37,5
@@
this function would answer back "toto".
*/}}
{{- define "common.release" -}}
this function would answer back "toto".
*/}}
{{- define "common.release" -}}
- {{-
regexReplaceAll "-[a-zA-Z0-9]*$" .Release.Name ""
}}
+ {{-
first (regexSplit "-" .Release.Name -1)
}}
{{- end -}}
{{- end -}}