X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-common%2FCommon-Template%2Fhelm%2Fric-common%2Ftemplates%2F_servicename.tpl;h=5e896063dc6c656ee1fb271c02098d76b47d99aa;hb=refs%2Fchanges%2F34%2F1234%2F9;hp=c9804f555711e364d20804e6ceecfd9c5cfa0338;hpb=e29b9bed3c1581f35e7f3bc5e5ab162897bc9e6b;p=it%2Fdep.git diff --git a/ric-common/Common-Template/helm/ric-common/templates/_servicename.tpl b/ric-common/Common-Template/helm/ric-common/templates/_servicename.tpl index c9804f55..5e896063 100644 --- a/ric-common/Common-Template/helm/ric-common/templates/_servicename.tpl +++ b/ric-common/Common-Template/helm/ric-common/templates/_servicename.tpl @@ -40,8 +40,8 @@ {{- printf "service-%s-rmr" $name | trunc 63 | trimSuffix "-" -}} {{- end -}} -{{- define "common.servicename.e2term.rmr" -}} - {{- $name := ( include "common.fullname.e2term" . ) -}} +{{- define "common.servicename.rsm.rmr" -}} + {{- $name := ( include "common.fullname.rsm" . ) -}} {{- printf "service-%s-rmr" $name | trunc 63 | trimSuffix "-" -}} {{- end -}} @@ -50,6 +50,11 @@ {{- printf "service-%s-rmr" $name | trunc 63 | trimSuffix "-" -}} {{- end -}} +{{- define "common.servicename.submgr.rmr" -}} + {{- $name := ( include "common.fullname.submgr" . ) -}} + {{- printf "service-%s-rmr" $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} + {{- define "common.servicename.a1mediator.rmr" -}} {{- $name := ( include "common.fullname.a1mediator" . ) -}} {{- printf "service-%s-rmr" $name | trunc 63 | trimSuffix "-" -}} @@ -68,8 +73,8 @@ {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}} {{- end -}} -{{- define "common.servicename.e2term.http" -}} - {{- $name := ( include "common.fullname.e2term" . ) -}} +{{- define "common.servicename.rsm.http" -}} + {{- $name := ( include "common.fullname.rsm" . ) -}} {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}} {{- end -}} @@ -78,19 +83,88 @@ {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}} {{- end -}} +{{- define "common.servicename.submgr.http" -}} + {{- $name := ( include "common.fullname.submgr" . ) -}} + {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} + {{- define "common.servicename.a1mediator.http" -}} {{- $name := ( include "common.fullname.a1mediator" . ) -}} {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}} {{- end -}} +{{- define "common.servicename.vespamgr.http" -}} + {{- $name := ( include "common.fullname.vespamgr" . ) -}} + {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} {{- define "common.servicename.nexus.http" -}} {{- $name := ( include "common.fullname.nexus" . ) -}} {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}} {{- end -}} + +{{- define "common.servicename.chartmuseum.http" -}} + {{- $name := ( include "common.fullname.chartmuseum" . ) -}} + {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{- define "common.servicename.dashboard.http" -}} + {{- $name := ( include "common.fullname.dashboard" . ) -}} + {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{- define "common.servicename.ves.http" -}} + {{- $name := ( include "common.fullname.ves" . ) -}} + {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{- define "common.servicename.jaegeradapter.query" -}} + {{- $name := ( include "common.fullname.jaegeradapter" . ) -}} + {{- printf "service-%s-query" $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- define "common.servicename.jaegeradapter.collector" -}} + {{- $name := ( include "common.fullname.jaegeradapter" . ) -}} + {{- printf "service-%s-collector" $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- define "common.servicename.jaegeradapter.agent" -}} + {{- $name := ( include "common.fullname.jaegeradapter" . ) -}} + {{- printf "service-%s-agent" $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} + ###################### TCP Service ################################## {{- define "common.servicename.dbaas.tcp" -}} {{- $name := ( include "common.fullname.dbaas" . ) -}} {{- printf "service-%s-tcp" $name | trunc 63 | trimSuffix "-" -}} {{- end -}} + +{{- define "common.servicename.messagerouter.tcp" -}} + {{- $name := ( include "common.fullname.messagerouter" . ) -}} + {{- printf "service-%s-tcp" $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{- define "common.servicename.ves.tcp" -}} + {{- $name := ( include "common.fullname.ves" . ) -}} + {{- printf "service-%s-tcp" $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} + + + +#################### Default ############### + + +{{/* + Resolve the name of a chart's service. + + The default will be the chart name (or .Values.nameOverride if set). + And the use of .Values.service.name overrides all. + + - .Values.service.name : override default service (ie. chart) name +*/}} +{{/* + Expand the service name for a chart. +*/}} +{{- define "common.servicename" -}} + {{- $name := default .Chart.Name .Values.nameOverride -}} + {{- default $name .Values.service.name | trunc 63 | trimSuffix "-" -}} +{{- end -}}