aad075ad372784c76a58b04e5085e7e7a43033bf
[it/dep.git] / ric-common / Common-Template / helm / ric-common / templates / _e2term.tpl
1 ################################################################################
2 #   Copyright (c) 2019 AT&T Intellectual Property.                             #
3 #                                                                              #
4 #   Licensed under the Apache License, Version 2.0 (the "License");            #
5 #   you may not use this file except in compliance with the License.           #
6 #   You may obtain a copy of the License at                                    #
7 #                                                                              #
8 #       http://www.apache.org/licenses/LICENSE-2.0                             #
9 #                                                                              #
10 #   Unless required by applicable law or agreed to in writing, software        #
11 #   distributed under the License is distributed on an "AS IS" BASIS,          #
12 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
13 #   See the License for the specific language governing permissions and        #
14 #   limitations under the License.                                             #
15 ################################################################################
16
17 {{- define "common.name.e2term" -}}
18   {{- printf "e2term" -}}
19 {{- end -}}
20
21 {{- define "common.fullname.e2term" -}}
22   {{- $name := ( include "common.name.e2term" . ) -}}
23   {{- $namespace := ( include "common.namespace.platform" . ) -}}
24   {{- printf "%s-%s" $namespace $name | trunc 63 | trimSuffix "-" -}}
25 {{- end -}}
26
27
28 {{- define "common.deploymentname.e2term" -}}
29   {{- $name := ( include "common.fullname.e2term" . ) -}}
30   {{- printf "deployment-%s" $name | trunc 63 | trimSuffix "-" -}}
31 {{- end -}}
32
33 {{- define "common.configmapname.e2term" -}}
34   {{- $name := ( include "common.fullname.e2term" . ) -}}
35   {{- printf "configmap-%s" $name | trunc 63 | trimSuffix "-" -}}
36 {{- end -}}
37
38 {{- define "common.containername.e2term" -}}
39   {{- $name := ( include "common.fullname.e2term" . ) -}}
40   {{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}}
41 {{- end -}}
42
43 {{- define "common.pvname.e2term" -}}
44   {{- $name := ( include "common.fullname.e2term" . ) -}}
45   {{- printf "pv-%s" $name | trunc 63 | trimSuffix "-" -}}
46 {{- end -}}
47
48 {{- define "common.pvcname.e2term" -}}
49   {{- $name := ( include "common.fullname.e2term" . ) -}}
50   {{- printf "pvc-%s" $name | trunc 63 | trimSuffix "-" -}}
51 {{- end -}}
52
53 {{- define "common.servicename.e2term.rmr" -}}
54   {{- $name := ( include "common.fullname.e2term" . ) -}}
55   {{- printf "service-%s-rmr" $name | trunc 63 | trimSuffix "-" -}}
56 {{- end -}}
57 {{- define "common.servicename.e2term.sctp" -}}
58   {{- $name := ( include "common.fullname.e2term" . ) -}}
59   {{- printf "service-%s-sctp" $name | trunc 63 | trimSuffix "-" -}}
60 {{- end -}}
61
62 {{- define "common.servicename.e2term.http" -}}
63   {{- $name := ( include "common.fullname.e2term" . ) -}}
64   {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
65 {{- end -}}
66
67
68
69 {{- define "common.serviceport.e2term.rmr.data" -}}38000{{- end -}}
70 {{- define "common.serviceport.e2term.rmr.route" -}}4561{{- end -}}
71 {{- define "common.serviceport.e2term.http" -}}8080{{- end -}}
72 {{- define "common.serviceport.e2term.sctp" -}}36422{{- end -}}
73
74
75 {{- define "common.serviceaccountname.e2term" -}}
76   {{- $name := ( include "common.fullname.e2term" . ) -}}
77   {{- printf "svcacct-%s" $name | trunc 63 | trimSuffix "-" -}}
78 {{- end -}}
79
80
81 {{- define "common.ingressname.e2term" -}}
82   {{- $name := ( include "common.fullname.e2term" . ) -}}
83   {{- printf "ingress-%s" $name | trunc 63 | trimSuffix "-" -}}
84 {{- end -}}