1 ################################################################################
2 # Copyright (c) 2019 AT&T Intellectual Property. #
3 # Copyright (c) 2019 Nokia. #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
19 Resolve the name of a chart's service.
21 The default will be the chart name (or .Values.nameOverride if set).
22 And the use of .Values.service.name overrides all.
24 - .Values.service.name : override default service (ie. chart) name
27 Expand the service name for a chart.
31 ###################### RMR Service ##################################
32 {{- define "common.servicename.appmgr.rmr" -}}
33 {{- $name := ( include "common.fullname.appmgr" . ) -}}
34 {{- printf "service-%s-rmr" $name | trunc 63 | trimSuffix "-" -}}
38 {{- define "common.servicename.e2mgr.rmr" -}}
39 {{- $name := ( include "common.fullname.e2mgr" . ) -}}
40 {{- printf "service-%s-rmr" $name | trunc 63 | trimSuffix "-" -}}
43 {{- define "common.servicename.e2term.rmr" -}}
44 {{- $name := ( include "common.fullname.e2term" . ) -}}
45 {{- printf "service-%s-rmr" $name | trunc 63 | trimSuffix "-" -}}
48 {{- define "common.servicename.rtmgr.rmr" -}}
49 {{- $name := ( include "common.fullname.rtmgr" . ) -}}
50 {{- printf "service-%s-rmr" $name | trunc 63 | trimSuffix "-" -}}
53 {{- define "common.servicename.submgr.rmr" -}}
54 {{- $name := ( include "common.fullname.submgr" . ) -}}
55 {{- printf "service-%s-rmr" $name | trunc 63 | trimSuffix "-" -}}
58 {{- define "common.servicename.a1mediator.rmr" -}}
59 {{- $name := ( include "common.fullname.a1mediator" . ) -}}
60 {{- printf "service-%s-rmr" $name | trunc 63 | trimSuffix "-" -}}
64 ###################### Http Service ##################################
66 {{- define "common.servicename.appmgr.http" -}}
67 {{- $name := ( include "common.fullname.appmgr" . ) -}}
68 {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
71 {{- define "common.servicename.e2mgr.http" -}}
72 {{- $name := ( include "common.fullname.e2mgr" . ) -}}
73 {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
76 {{- define "common.servicename.e2term.http" -}}
77 {{- $name := ( include "common.fullname.e2term" . ) -}}
78 {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
81 {{- define "common.servicename.rtmgr.http" -}}
82 {{- $name := ( include "common.fullname.rtmgr" . ) -}}
83 {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
86 {{- define "common.servicename.submgr.http" -}}
87 {{- $name := ( include "common.fullname.submgr" . ) -}}
88 {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
91 {{- define "common.servicename.a1mediator.http" -}}
92 {{- $name := ( include "common.fullname.a1mediator" . ) -}}
93 {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
96 {{- define "common.servicename.vespamgr.http" -}}
97 {{- $name := ( include "common.fullname.vespamgr" . ) -}}
98 {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
101 {{- define "common.servicename.nexus.http" -}}
102 {{- $name := ( include "common.fullname.nexus" . ) -}}
103 {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
106 {{- define "common.servicename.chartmuseum.http" -}}
107 {{- $name := ( include "common.fullname.chartmuseum" . ) -}}
108 {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
111 {{- define "common.servicename.dashboard.http" -}}
112 {{- $name := ( include "common.fullname.dashboard" . ) -}}
113 {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
116 {{- define "common.servicename.ves.http" -}}
117 {{- $name := ( include "common.fullname.ves" . ) -}}
118 {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
122 ###################### TCP Service ##################################
124 {{- define "common.servicename.dbaas.tcp" -}}
125 {{- $name := ( include "common.fullname.dbaas" . ) -}}
126 {{- printf "service-%s-tcp" $name | trunc 63 | trimSuffix "-" -}}
129 {{- define "common.servicename.messagerouter.tcp" -}}
130 {{- $name := ( include "common.fullname.messagerouter" . ) -}}
131 {{- printf "service-%s-tcp" $name | trunc 63 | trimSuffix "-" -}}
134 {{- define "common.servicename.ves.tcp" -}}
135 {{- $name := ( include "common.fullname.ves" . ) -}}
136 {{- printf "service-%s-tcp" $name | trunc 63 | trimSuffix "-" -}}