Add common template for all names for cross referencing. Allow individual repository...
[it/dep.git] / ric-platform / 50-RIC-Platform / helm / common / templates / _servicename.tpl
 {{/*
   Expand the service name for a chart.
 */}}
-{{- define "common.servicename" -}}
-  {{- $name := default .Chart.Name .Values.nameOverride -}}
-  {{- default $name .Values.service.name | trunc 63 | trimSuffix "-" -}}
+
+
+{{- define "common.servicename.appmgr" -}}
+  {{- $name := ( include "common.name.appmgr" . ) -}}
+  {{- printf "service-%s" $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
+{{- define "common.servicename.dbaas" -}}
+  {{- $name := ( include "common.name.dbaas" . ) -}}
+  {{- printf "service-%s" $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
+{{- define "common.servicename.e2mgr" -}}
+  {{- $name := ( include "common.name.e2mgr" . ) -}}
+  {{- printf "service-%s" $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
+{{- define "common.servicename.e2term" -}}
+  {{- $name := ( include "common.name.e2term" . ) -}}
+  {{- printf "service-%s" $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
+{{- define "common.servicename.rtmgr" -}}
+  {{- $name := ( include "common.name.rtmgr" . ) -}}
+  {{- printf "service-%s" $name | trunc 63 | trimSuffix "-" -}}
 {{- end -}}
+
+
+
+